Blame 0052-Fix-parsing-command-line-arguments.patch

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