[lxc-devel] [PATCH] Fix lxc-stop's argument parsing

Stéphane Graber stgraber at ubuntu.com
Fri Jan 31 09:21:34 UTC 2014


On Thu, Jan 30, 2014 at 04:18:50PM +0100, Robert Vogelgesang wrote:
> Change lxc-stop's argument parsing so that it matches what the help option
> and the man page both describe.
> 
> Signed-off-by: Robert Vogelgesang <vogel at users.sourceforge.net>

Acked-by: Stéphane Graber <stgraber at ubuntu.com>

> 
> diff -up lxc-lxc-1.0.0.beta3/src/lxc/lxc_stop.c.fix_noargs lxc-lxc-1.0.0.beta3/src/lxc/lxc_stop.c
> --- lxc-lxc-1.0.0.beta3/src/lxc/lxc_stop.c.fix_noargs	2014-01-27 14:52:20.000000000 +0100
> +++ lxc-lxc-1.0.0.beta3/src/lxc/lxc_stop.c	2014-01-30 15:42:56.772582318 +0100
> @@ -54,8 +54,8 @@ static const struct option my_longopts[]
>  	{"nowait", no_argument, 0, 'W'},
>  	{"timeout", required_argument, 0, 't'},
>  	{"kill", no_argument, 0, 'k'},
> -	{"no-kill", no_argument, 0, OPT_NO_KILL},
> -	{"no-lock", no_argument, 0, OPT_NO_LOCK},
> +	{"nokill", no_argument, 0, OPT_NO_KILL},
> +	{"nolock", no_argument, 0, OPT_NO_LOCK},
>  	LXC_COMMON_OPTIONS
>  };
>  
> _______________________________________________
> lxc-devel mailing list
> lxc-devel at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-devel

-- 
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20140131/05ba82de/attachment.pgp>


More information about the lxc-devel mailing list