From: Kamil Rytarowski Date: Sat, 11 May 2013 09:39:46 +0000 (+0200) Subject: Fix parsing command line arguments X-Git-Tag: 028~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a736cc129ed29157a4e5460382d17154f8fc381;p=thirdparty%2Fdracut.git 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. --- diff --git a/install/dracut-install.c b/install/dracut-install.c index b4bf68159..584a30b58 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);