diff options
author | Alan Jenkins <alan-jenkins@tuffmail.co.uk> | 2009-06-11 15:24:23 +0100 |
---|---|---|
committer | Alan Jenkins <alan-jenkins@tuffmail.co.uk> | 2009-06-11 16:28:44 +0100 |
commit | 7add809b710a8b794cc88f7ab175f4a980396f1a (patch) | |
tree | f9817c0527617e755dc3310e4fcd35fccbfd2297 | |
parent | 55f65905d551d6793b254477bd45302974e5f4b0 (diff) | |
download | module-init-tools-7add809b710a8b794cc88f7ab175f4a980396f1a.tar.gz |
Clean up missing options
modprobe -D (short version of --show-deps) doesn't work, remove it from
the manpage. Don't try to pass "-D" to commands either ("--show-deps"
sets dry_run, so we won't run any commands).
modprobe -Q is not valid, remove 'Q' from the getopt string.
In depmod, "r" was listed twice in the getopt string.
Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
-rw-r--r-- | depmod.c | 2 | ||||
-rw-r--r-- | doc/modprobe.sgml | 2 | ||||
-rw-r--r-- | modprobe.c | 3 |
3 files changed, 3 insertions, 4 deletions
@@ -1186,7 +1186,7 @@ int main(int argc, char *argv[]) /* Don't print out any errors just yet, we might want to exec backwards compat version. */ opterr = 0; - while ((opt = getopt_long(argc, argv, "aAb:C:F:euqrrvnhVwm", options, NULL)) + while ((opt = getopt_long(argc, argv, "aAb:C:F:euqrvnhVwm", options, NULL)) != -1) { switch (opt) { case 'a': diff --git a/doc/modprobe.sgml b/doc/modprobe.sgml index dd1311e..fc0d8eb 100644 --- a/doc/modprobe.sgml +++ b/doc/modprobe.sgml @@ -365,7 +365,7 @@ </listitem> </varlistentry> <varlistentry> - <term><option>-D</option> <option>--show-depends</option> + <term><option>--show-depends</option> </term> <listitem> <para> @@ -1344,7 +1344,7 @@ int main(int argc, char *argv[]) argv = merge_args(getenv("MODPROBE_OPTIONS"), argv, &argc); uname(&buf); - while ((opt = getopt_long(argc, argv, "Vvqsnd:C:o:rwclt:aQibf", options, NULL)) != -1){ + while ((opt = getopt_long(argc, argv, "Vvqsnd:C:o:rwclt:aibf", options, NULL)) != -1){ switch (opt) { case 'V': puts(PACKAGE " version " VERSION); @@ -1382,7 +1382,6 @@ int main(int argc, char *argv[]) dry_run = 1; ignore_proc = 1; verbose = 1; - add_to_env_var("-D"); break; case 'o': newname = optarg; |