projects
/
invirt/packages/invirt-remote.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Don't pass untrusted arguments to xm info.
[invirt/packages/invirt-remote.git]
/
host
/
usr
/
sbin
/
invirt-remote
diff --git
a/host/usr/sbin/invirt-remote
b/host/usr/sbin/invirt-remote
index
8511f60
..
dcac451
100755
(executable)
--- a/
host/usr/sbin/invirt-remote
+++ b/
host/usr/sbin/invirt-remote
@@
-21,7
+21,7
@@
case "$TYPE" in
COMMAND=/usr/sbin/invirt-listvms
;;
info)
- COMMAND=/usr/sbin/xm
+ exec /usr/sbin/xm info
;;
vnccert)
COMMAND=/usr/bin/invirt-vnc-getcert
@@
-38,4
+38,4
@@
case "$TYPE" in
;;
esac
-$COMMAND "$SERVICE" "$@"
+exec "$COMMAND" "$SERVICE" "$@"