mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-06 10:13:10 +00:00
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 <andrewg800@gmail.com> Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
parent
176d9acb2e
commit
1a7cb08504
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user