summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2019-10-24 17:40:05 +0800
committerYu Watanabe <watanabe.yu+github@gmail.com>2019-10-25 13:35:37 +0900
commit4a434023d2380ef04492ae3ca41781738ba4d133 (patch)
tree3706cf3cad3c4b7f1b87b214cc2cceb11de14dbd
parenta5648b809457d120500b2acb18b31e2168a4817a (diff)
downloadsystemd-4a434023d2380ef04492ae3ca41781738ba4d133.tar.gz
machine-id-setup: avoid unexpected aborting
Code should not be reached 'Unhandled option' at src/machine-id-setup/machine-id-setup-main.c:97, function parse_argv(). Aborting. Aborted This behaviour is not good and will confuse user. Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
-rw-r--r--src/machine-id-setup/machine-id-setup-main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/machine-id-setup/machine-id-setup-main.c b/src/machine-id-setup/machine-id-setup-main.c
index 1b575d7725..872b00c158 100644
--- a/src/machine-id-setup/machine-id-setup-main.c
+++ b/src/machine-id-setup/machine-id-setup-main.c
@@ -66,7 +66,7 @@ static int parse_argv(int argc, char *argv[]) {
assert(argc >= 0);
assert(argv);
- while ((c = getopt_long(argc, argv, "hqcv", options, NULL)) >= 0)
+ while ((c = getopt_long(argc, argv, "h", options, NULL)) >= 0)
switch (c) {