commit | 70cbb6e02626608c95a74e74bdc51bbbf7fb570b | [log] [tgz] |
---|---|---|
author | Mike Frysinger <vapier@gentoo.org> | Fri Apr 21 22:04:05 2006 +0000 |
committer | Mike Frysinger <vapier@gentoo.org> | Fri Apr 21 22:04:05 2006 +0000 |
tree | 04d1aae14aa24819b94bcbfc105aad0f46951152 | |
parent | 10f55b1daed9ab17c594fa0598aeea8002a70afc [diff] [blame] |
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.
diff --git a/procps/fuser.c b/procps/fuser.c index 850626e..35d77ed 100644 --- a/procps/fuser.c +++ b/procps/fuser.c
@@ -326,6 +326,9 @@ 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]);