]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
depmod: --symbol-prefix actually requires an argument
authorAndrey Mazo <mazo@telum.ru>
Wed, 12 Dec 2012 12:36:58 +0000 (16:36 +0400)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Thu, 13 Dec 2012 17:52:42 +0000 (15:52 -0200)
-P requires and uses an argument but its long counterpart --symbol-prefix does not:
depmod: option '--symbol-prefix' doesn't allow an argument

tools/depmod.c

index 682e662574208ad1b4a3d2f1c0aba8b52ca5ce91..f7d71f852a84fc1dcc4ca8c938da255b8a4ff8ac 100644 (file)
@@ -63,7 +63,7 @@ static const struct option cmdopts[] = {
        { "verbose", no_argument, 0, 'v' },
        { "show", no_argument, 0, 'n' },
        { "dry-run", no_argument, 0, 'n' },
-       { "symbol-prefix", no_argument, 0, 'P' },
+       { "symbol-prefix", required_argument, 0, 'P' },
        { "warn", no_argument, 0, 'w' },
        { "map", no_argument, 0, 'm' }, /* deprecated */
        { "version", no_argument, 0, 'V' },