svn commit: trunk/busybox/procps

vapier at busybox.net vapier at busybox.net
Fri Apr 21 22:04:07 UTC 2006


Author: vapier
Date: 2006-04-21 15:04:05 -0700 (Fri, 21 Apr 2006)
New Revision: 14938

Log:
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.


Modified:
   trunk/busybox/procps/fuser.c


Changeset:
Modified: trunk/busybox/procps/fuser.c
===================================================================
--- trunk/busybox/procps/fuser.c	2006-04-21 21:59:22 UTC (rev 14937)
+++ trunk/busybox/procps/fuser.c	2006-04-21 22:04:05 UTC (rev 14938)
@@ -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]);




More information about the busybox-cvs mailing list