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

[Xen-changelog] [xen-unstable] tools/hotplug: 21549:8bcaec29574e breaks vif-script with arguments.



# HG changeset patch
# User Brendan Cully <brendan@xxxxxxxxx>
# Date 1282139451 -3600
# Node ID c9f7a66149dc69a00593cbc8d439103459cf5f09
# Parent  5218db847b58a151d8f320b7141efc984f759b35
tools/hotplug: 21549:8bcaec29574e breaks vif-script with arguments.

For example, (vif-script 'vif-bridge bridge=eth1') in xend-config.sxp will
cause vif-setup to attempt to execute 'vif-bridge bridge=eth1' due to a
quoting mismatch. The fix appears to be to remove the extra quotes around
"$script" in vif-setup.

Signed-off-by: Brendan Cully <brendan@xxxxxxxxx>
Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
 tools/hotplug/Linux/vif-setup |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 5218db847b58 -r c9f7a66149dc tools/hotplug/Linux/vif-setup
--- a/tools/hotplug/Linux/vif-setup     Tue Aug 17 19:32:37 2010 +0100
+++ b/tools/hotplug/Linux/vif-setup     Wed Aug 18 14:50:51 2010 +0100
@@ -2,7 +2,7 @@
 
 if test "$script"
 then
-    exec "$script" $*
+    exec $script $*
 else
     exec /etc/xen/scripts/vif-bridge $*
 fi

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.