[lxc-devel] [PATCH 1/2] Add double-dash to lxc-netstat re-call arguments

Andrew Gilbert andrewg800 at gmail.com
Wed Jun 26 23:10:37 UTC 2013


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 at gmail.com>
---
  src/lxc/lxc-netstat.in | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lxc/lxc-netstat.in b/src/lxc/lxc-netstat.in
index 2fa2d23..229c214 100644
--- a/src/lxc/lxc-netstat.in
+++ b/src/lxc/lxc-netstat.in
@@ -93,7 +93,7 @@ if [ -z "$name" ]; then
  fi
   if [ -z "$exec" ]; then
-    exec @BINDIR@/lxc-unshare -s MOUNT -- $0 -n $name --exec "$@"
+    exec @BINDIR@/lxc-unshare -s MOUNT -- $0 -n $name --exec -- "$@"
  fi
   if lxc-info -n $name --state-is 'STOPPED'; then
-- 
1.8.1.2





More information about the lxc-devel mailing list