[lxc-devel] [PATCH 1/2] fix -c argument handling
Serge Hallyn
serge.hallyn at ubuntu.com
Mon Jul 1 21:42:32 UTC 2013
Quoting Dwight Engen (dwight.engen at oracle.com):
> commit 829dd918 added parsing of a -c argument to both the common options
> handling and to lxc-start. It is not a common option, and should have only
> been added to lxc-start. Because the common code is processing it, no other
> command can use -c. Remove -c from being processed by the common code.
> Tested that -c still works with lxc-start.
>
> Signed-off-by: Dwight Engen <dwight.engen at oracle.com>
Acked-by: Serge E. Hallyn <serge.hallyn at ubuntu.com>
> ---
> src/lxc/arguments.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/src/lxc/arguments.c b/src/lxc/arguments.c
> index 90fbea3..7cea4e5 100644
> --- a/src/lxc/arguments.c
> +++ b/src/lxc/arguments.c
> @@ -195,7 +195,6 @@ extern int lxc_arguments_parse(struct lxc_arguments *args,
> case 'n': args->name = optarg; break;
> case 'o': args->log_file = optarg; break;
> case 'l': args->log_priority = optarg; break;
> - case 'c': args->console = optarg; break;
> case 'q': args->quiet = 1; break;
> case 'P':
> ret = lxc_arguments_lxcpath_add(args, optarg);
> --
> 1.8.1.4
>
More information about the lxc-devel
mailing list