From 70cbb6e02626608c95a74e74bdc51bbbf7fb570b Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 21 Apr 2006 22:04:05 +0000 Subject: 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. --- procps/fuser.c | 3 +++ 1 file changed, 3 insertions(+) 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 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