Commit 9a15a0f3 by Dwight Engen Committed by Serge Hallyn

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: 's avatarDwight Engen <dwight.engen@oracle.com> Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com>
parent 53f3f048
...@@ -195,7 +195,6 @@ extern int lxc_arguments_parse(struct lxc_arguments *args, ...@@ -195,7 +195,6 @@ extern int lxc_arguments_parse(struct lxc_arguments *args,
case 'n': args->name = optarg; break; case 'n': args->name = optarg; break;
case 'o': args->log_file = optarg; break; case 'o': args->log_file = optarg; break;
case 'l': args->log_priority = optarg; break; case 'l': args->log_priority = optarg; break;
case 'c': args->console = optarg; break;
case 'q': args->quiet = 1; break; case 'q': args->quiet = 1; break;
case 'P': case 'P':
ret = lxc_arguments_lxcpath_add(args, optarg); ret = lxc_arguments_lxcpath_add(args, optarg);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment