From: Dwight Engen Date: Mon, 1 Jul 2013 16:38:15 +0000 (-0400) Subject: fix -c argument handling X-Git-Tag: lxc-1.0.0.alpha1~1^2~142 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a15a0f3f8faaa5e0d983f11bcf94dcf492c1349;p=thirdparty%2Flxc.git fix -c argument handling 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 Signed-off-by: Serge Hallyn --- diff --git a/src/lxc/arguments.c b/src/lxc/arguments.c index 90fbea3a3..7cea4e5c3 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);