[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[libvirt] [PATCH] trivial fix for virsh return value bug
- From: Daniel Veillard <veillard redhat com>
- To: libvir-list redhat com
- Subject: [libvirt] [PATCH] trivial fix for virsh return value bug
- Date: Wed, 15 Apr 2009 21:49:23 +0200
https://bugzilla.redhat.com/show_bug.cgi?id=495954
virsh ttyconsole [node] always sets a return code of 1
we initialize ret to FALSE, but don't set it to TRUE when the operation
succeeds
Daniel
--
Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
daniel veillard com | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library http://libvirt.org/
Index: src/virsh.c
===================================================================
RCS file: /data/cvs/libxen/src/virsh.c,v
retrieving revision 1.200
diff -u -u -p -r1.200 virsh.c
--- src/virsh.c 3 Apr 2009 14:03:38 -0000 1.200
+++ src/virsh.c 15 Apr 2009 19:48:49 -0000
@@ -4930,6 +4930,7 @@ cmdTTYConsole(vshControl *ctl, const vsh
goto cleanup;
}
vshPrint(ctl, "%s\n", (const char *)obj->stringval);
+ ret = TRUE;
cleanup:
xmlXPathFreeObject(obj);
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]