From: Andrew Gilbert Date: Thu, 27 Jun 2013 13:07:14 +0000 (-0500) Subject: Add double-dash to lxc-netstat re-call arguments X-Git-Tag: lxc-1.0.0.alpha1~1^2~148 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a7cb0850405b271b7bedacd243235f29cd368df;p=thirdparty%2Flxc.git Add double-dash to lxc-netstat re-call arguments 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 Signed-off-by: Serge Hallyn --- diff --git a/src/lxc/lxc-netstat.in b/src/lxc/lxc-netstat.in index d3eee1c22..163027b4e 100644 --- a/src/lxc/lxc-netstat.in +++ b/src/lxc/lxc-netstat.in @@ -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