Hide Forgot
Description of problem: When spicec is called without arguments, it exits with 0 return code, however an error message is displayed: +=====================+===================================+=============+ | CALL | ERROR MESSAGE | RETURN CODE | +=====================+===================================+=============+ | spicec | spicec: missing --host | 0 | +---------------------+-----------------------------------+-------------+ | spicec -h localhost | spicec: missing --port or --sport | 14 | +---------------------+-----------------------------------+-------------+ Version-Release number of selected component (if applicable): spice-client-0.8.0-2.el6.x86_64 How reproducible: 100% Steps to Reproduce: $ spicec &> /dev/null; echo $? Actual results: 0 Expected results: 14
Moreover, '$ spicec -p 3000' exits with 0
And '$ spicec -s 4000' exits with 0 as well
http://lists.freedesktop.org/archives/spice-devel/2011-May/003824.html
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release.
Verified on spice-client-0.8.2-7.el6.x86_64 [lkocman@dhcp-29-219 Desktop]$ spicec -h manager.spice spicec: missing --port or --sport [lkocman@dhcp-29-219 Desktop]$ echo $? 14 [lkocman@dhcp-29-219 Desktop]$ spicec -s 3001 spicec: missing --host [lkocman@dhcp-29-219 Desktop]$ echo $? 14 [lkocman@dhcp-29-219 Desktop]$ spicec -p 3001 spicec: missing --host [lkocman@dhcp-29-219 Desktop]$ echo $? 14 [lkocman@dhcp-29-219 Desktop]$ spicec spicec: missing --host [lkocman@dhcp-29-219 Desktop]$ echo $? 14
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: Cause + Consequence When running spice-client without --host command line option, it shows an error message and exit with exit-status 0. Fix+Result When running spice-client without --host command line option, make spice-client exit with non-0 exit status (SPICEC_ERROR_CODE_CMD_LINE_ERROR == 14).
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2011-1518.html