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:
Mike Frysinger 2006-04-21 22:04:05 +00:00
parent 10f55b1dae
commit 70cbb6e026

View File

@ -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]);