mirror of
https://github.com/sheumann/hush.git
synced 2024-12-21 23:29:34 +00:00
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 success = 1;
|
||||
|
||||
if (argc < 2)
|
||||
bb_show_usage();
|
||||
|
||||
fni = xmalloc(sizeof(int));
|
||||
for(i=1;i<argc;i++) {
|
||||
optn = fuser_option(argv[i]);
|
||||
|
Loading…
Reference in New Issue
Block a user