Brendan Cully
2010-Aug-17 22:13 UTC
[Xen-devel] [PATCH] hotplug: 21549:8bcaec29574e breaks vif-script with arguments
# HG changeset patch # User Brendan Cully <brendan@cs.ubc.ca> # Date 1282083158 25200 # Node ID 74b9fe513d8591ca14233590062079b042abb68d # Parent 774dfc178c39bd3fe2ec14b4f96e60b78391b397 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@cs.ubc.ca> diff --git a/tools/hotplug/Linux/vif-setup b/tools/hotplug/Linux/vif-setup --- a/tools/hotplug/Linux/vif-setup +++ b/tools/hotplug/Linux/vif-setup @@ -2,7 +2,7 @@ if test "$script" then - exec "$script" $* + exec $script $* else exec /etc/xen/scripts/vif-bridge $* fi _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Ian Jackson
2010-Aug-18 13:51 UTC
Re: [Xen-devel] [PATCH] hotplug: 21549:8bcaec29574e breaks vif-script with arguments
Brendan Cully writes ("[Xen-devel] [PATCH] hotplug: 21549:8bcaec29574e breaks vif-script with arguments"):> 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.The question is whether the argument is supposed to be a sh syntax command or the name of an executable which latter might contain spaces. I think your intererpretation (the former) is better, and it''s what we had before, so I have applied your patch. Ian. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Reasonably Related Threads
- [PATCH] Disable GCC stack protection in kernel builds
- [PATCH] blktap2: Fix off-by-one error in driver lookup
- [PATCH] Janitorial work on xc_save.c
- [xen-unstable test] 10413: regressions - trouble: broken/fail/pass
- Problem with ices on OpenBSD 2.9 w/ Icecast 1.3.10