Bug 578407

Summary: the prefix '-' in sub-command isn't handled by guestfish in remote control mode
Product: [Community] Virtualization Tools Reporter: Qixiang Wan <qwan>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Severity: medium Docs Contact:
Priority: low    
Version: unspecifiedCC: mbooth, rjones, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 578409 (view as bug list) Environment:
Last Closed: 2010-05-12 12:22:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 578409    

Description Qixiang Wan 2010-03-31 08:50:52 UTC
Description of problem:
In remote control mode of guestfish, the server will normally exit if there is an error in a command. guestfish man page said if we prefix a command with a - character, then that command will not cause guestfish to exit,
but this doesn't work in remote control mode, seems the prefixal '-' in sub-command won't be handled by guestfish.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:

1. $ eval `guestfish --listen`
2. $ guestfish --remote version
major: 1
minor: 0
release: 85
3. $ guestfish --remote -- -lvs
-lvs: unknown command
4. $ guestfish --remote version
guestfish: remote: looks like the server is not running
Actual results:
'-' prefixed sub-commands is not recognized by guestfish, and this will cause the guestfish server exit in remote control mode.

Expected results:
sub-commands which prefixed with '-' character should be recognized by guestfish, and this should make guestfish ignore the errors of commands even in remote control mode.

Additional info:

Comment 2 Richard W.M. Jones 2010-04-13 21:28:53 UTC
This should be in the upstream (Virtualization Tools) product.

Comment 3 Fedora Update System 2010-04-20 19:12:22 UTC
libguestfs-1.2.3-1.el5 has been submitted as an update for Fedora EPEL 5.

Comment 4 Fedora Update System 2010-04-20 22:25:53 UTC
libguestfs-1.2.3-1.fc13 has been submitted as an update for Fedora 13.

Comment 5 Fedora Update System 2010-04-21 12:42:41 UTC
libguestfs-1.2.3-1.fc12.6 has been submitted as an update for Fedora 12.

Comment 6 Fedora Update System 2010-05-21 00:31:33 UTC
libguestfs-1.2.3-1.el5 has been pushed to the Fedora EPEL 5 stable repository.  If problems still persist, please make note of it in this bug report.