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(+) (limited to 'procps') diff --git a/procps/fuser.c b/procps/fuser.c index 850626e42..35d77ed1c 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