]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
fix -c argument handling
authorDwight Engen <dwight.engen@oracle.com>
Mon, 1 Jul 2013 16:38:15 +0000 (12:38 -0400)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Mon, 1 Jul 2013 21:47:03 +0000 (16:47 -0500)
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@oracle.com>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/arguments.c

index 90fbea3a3c7285b23e9bab940e5b515e6e62aff8..7cea4e5c39d420a168cc14e5b55fb6a6767f742a 100644 (file)
@@ -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);