projects
/
platform
/
upstream
/
dracut.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15b9306
)
Fix parsing command line arguments
author
Kamil Rytarowski
<n54@gmx.com>
Sat, 11 May 2013 09:39:46 +0000
(11:39 +0200)
committer
Harald 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
patch
|
blob
|
history
diff --git
a/install/dracut-install.c
b/install/dracut-install.c
index
b4bf681
..
584a30b
100644
(file)
--- 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:
DHIL
R", options, NULL)) != -1) {
+ while ((c = getopt_long(argc, argv, "adhloD:
H
R", options, NULL)) != -1) {
switch (c) {
case ARG_VERSION:
puts(PROGRAM_VERSION_STRING);