Jason Schoon writes: Attached is a patch to display the usage message if fuser is called with no arguments, rather than doing no work and failing silently.
This commit is contained in:
parent
10f55b1dae
commit
70cbb6e026
@ -326,6 +326,9 @@ int fuser_main(int argc, char **argv)
|
|||||||
int killsig = SIGTERM;
|
int killsig = SIGTERM;
|
||||||
int success = 1;
|
int success = 1;
|
||||||
|
|
||||||
|
if (argc < 2)
|
||||||
|
bb_show_usage();
|
||||||
|
|
||||||
fni = xmalloc(sizeof(int));
|
fni = xmalloc(sizeof(int));
|
||||||
for(i=1;i<argc;i++) {
|
for(i=1;i<argc;i++) {
|
||||||
optn = fuser_option(argv[i]);
|
optn = fuser_option(argv[i]);
|
||||||
|
Loading…
Reference in New Issue
Block a user