Commit 1a7cb085 by Andrew Gilbert Committed by Serge Hallyn

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: 's avatarAndrew Gilbert <andrewg800@gmail.com> Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com>
parent 176d9acb
...@@ -104,7 +104,7 @@ if [ -z "$lxc_path" ]; then ...@@ -104,7 +104,7 @@ if [ -z "$lxc_path" ]; then
fi fi
if [ -z "$exec" ]; then 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 fi
if lxc-info -n $name -P "$lxc_path" --state-is 'STOPPED'; then if lxc-info -n $name -P "$lxc_path" --state-is 'STOPPED'; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment