From 6a736cc129ed29157a4e5460382d17154f8fc381 Mon Sep 17 00:00:00 2001 From: Kamil Rytarowski Date: Sat, 11 May 2013 11:39:46 +0200 Subject: [PATCH] Fix parsing command line arguments Adjust correctly the *optstring argument of getopt_long. Add support for a missing option -v|--verbose and drop unknown options -D, -I and -L. --- install/dracut-install.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/dracut-install.c b/install/dracut-install.c index b4bf681..584a30b 100644 --- a/install/dracut-install.c +++ b/install/dracut-install.c @@ -619,7 +619,7 @@ static int parse_argv(int argc, char *argv[]) {NULL, 0, NULL, 0} }; - while ((c = getopt_long(argc, argv, "adhloD:DHILR", options, NULL)) != -1) { + while ((c = getopt_long(argc, argv, "adhloD:HR", options, NULL)) != -1) { switch (c) { case ARG_VERSION: puts(PROGRAM_VERSION_STRING); -- 2.7.4