svn path=/trunk/packages/invirt-remote/; revision=2093
+invirt-remote (0.3.2) unstable; urgency=low
+
+ * Don't pass untrusted arguments to xm info.
+ * Exit with a non-0 error code on the host if there's an error.
+
+ -- Evan Broder <broder@mit.edu> Sat, 31 Jan 2009 03:51:24 -0500
+
invirt-remote (0.3.1) unstable; urgency=low
* invirt.remote.bcast: provide stderr text when remctl fails
COMMAND=/usr/sbin/invirt-listvms
;;
info)
- COMMAND=/usr/sbin/xm
+ exec /usr/sbin/xm info
;;
vnccert)
COMMAND=/usr/bin/invirt-vnc-getcert
;;
esac
-$COMMAND "$SERVICE" "$@"
+exec "$COMMAND" "$SERVICE" "$@"
ACTION="$2"
MACHINE="d_$ORIGMACHINE"
+xm () {
+ command xm "$@" || exit 35
+}
+
case "$ACTION" in
list|vcpu-list|uptime)
xm "$ACTION" "$MACHINE"