]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Add double-dash to lxc-netstat re-call arguments
authorAndrew Gilbert <andrewg800@gmail.com>
Thu, 27 Jun 2013 13:07:14 +0000 (08:07 -0500)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Thu, 27 Jun 2013 13:10:44 +0000 (08:10 -0500)
When lxc-netstat was called by lxc-unshare, it would be given the
arguments intended for netstat from the first invocation, but without
anything to separate them from the arguments intended for lxc-netstat.
This meant that netstat arguments like -n would result in lxc-netstat
trying to process them.

Signed-off-by: Andrew Gilbert <andrewg800@gmail.com>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/lxc-netstat.in

index d3eee1c22a3f1c3674ae265687228960313a3996..163027b4e21191ca92fd39f020b87e4c56e11c2a 100644 (file)
@@ -104,7 +104,7 @@ if [ -z "$lxc_path" ]; then
 fi
 
 if [ -z "$exec" ]; then
-    exec @BINDIR@/lxc-unshare -s MOUNT -- $0 -n $name -P "$lxc_path" --exec "$@"
+    exec @BINDIR@/lxc-unshare -s MOUNT -- $0 -n $name -P "$lxc_path" --exec -- "$@"
 fi
 
 if lxc-info -n $name -P "$lxc_path" --state-is 'STOPPED'; then