diff options
author | Kamil Rytarowski <n54@gmx.com> | 2013-05-11 11:39:46 +0200 |
---|---|---|
committer | Harald Hoyer <harald@redhat.com> | 2013-05-28 14:33:02 +0200 |
commit | 6a736cc129ed29157a4e5460382d17154f8fc381 (patch) | |
tree | 4d28363d1e92af8f1b3bde6bfcbbf95d2f0a9572 | |
parent | 15b93069bba031169eeccb8b16fe0382a4bb2968 (diff) | |
download | dracut-6a736cc129ed29157a4e5460382d17154f8fc381.tar.gz dracut-6a736cc129ed29157a4e5460382d17154f8fc381.tar.bz2 dracut-6a736cc129ed29157a4e5460382d17154f8fc381.zip |
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.
-rw-r--r-- | install/dracut-install.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/install/dracut-install.c b/install/dracut-install.c index b4bf6815..584a30b5 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); |