[PATCH] Fix return value of virsh vncdisplay

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxx>

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)
----------------------------------------------------------------------

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]