]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Fix parsing command line arguments
authorKamil Rytarowski <n54@gmx.com>
Sat, 11 May 2013 09:39:46 +0000 (11:39 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 28 May 2013 12:33:02 +0000 (14:33 +0200)
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

index b4bf681590ce24cdf3d6a5dce72c8cbe3669b182..584a30b5824fdd89bf5e991578350fb27cc92167 100644 (file)
@@ -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);