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

Serge Hallyn serge.hallyn at ubuntu.com
Thu Jun 27 13:05:29 UTC 2013


Quoting Andrew Gilbert (andrewg800 at gmail.com):
> 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>

Acked-by: Serge E. Hallyn <serge.hallyn at ubuntu.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
> 
> 
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Windows:
> 
> Build for Windows Store.
> 
> http://p.sf.net/sfu/windows-dev2dev
> _______________________________________________
> Lxc-devel mailing list
> Lxc-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lxc-devel




More information about the lxc-devel mailing list