[Libvir] [PATCH] Fix return value of virsh vncdisplay

Hi Virsh vncdisplay always returns 1, because return value is not set in the case of normal end. ------------------------------------ # virsh vncdisplay test :0 # echo $? 1 ------------------------------------ This patch fixes it. Signed-off-by: Masayuki Sunou <fj1826dm@aa.jp.fujitsu.com> Thanks, Masayuki Sunou. ---------------------------------------------------------------------- Index: libvirt/src/virsh.c =================================================================== RCS file: /data/cvs/libvirt/src/virsh.c,v retrieving revision 1.100 diff -u -p -r1.100 virsh.c --- libvirt/src/virsh.c 21 Aug 2007 11:53:52 -0000 1.100 +++ libvirt/src/virsh.c 28 Aug 2007 06:33:03 -0000 @@ -2919,6 +2919,7 @@ cmdVNCDisplay(vshControl * ctl, vshCmd * } xmlXPathFreeObject(obj); obj = NULL; + ret = TRUE; cleanup: if (obj) ----------------------------------------------------------------------

On Wed, Aug 29, 2007 at 09:26:35AM +0900, Masayuki Sunou wrote:
Hi
Virsh vncdisplay always returns 1, because return value is not set in the case of normal end. ------------------------------------ # virsh vncdisplay test :0
# echo $? 1 ------------------------------------
This patch fixes it.
Whoops, my bad, I forgot this, thanks for spotting the issue ! Applied and commited, Daniel -- Red Hat Virtualization group http://redhat.com/virtualization/ Daniel Veillard | virtualization library http://libvirt.org/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
participants (2)
-
Daniel Veillard
-
Masayuki Sunou