svn commit: trunk/busybox/miscutils

aldot at busybox.net aldot at busybox.net
Tue Oct 24 13:06:56 PDT 2006


Author: aldot
Date: 2006-10-24 13:06:55 -0700 (Tue, 24 Oct 2006)
New Revision: 16430

Log:
- we take exactly one argument.


Modified:
   trunk/busybox/miscutils/raidautorun.c


Changeset:
Modified: trunk/busybox/miscutils/raidautorun.c
===================================================================
--- trunk/busybox/miscutils/raidautorun.c	2006-10-23 23:21:58 UTC (rev 16429)
+++ trunk/busybox/miscutils/raidautorun.c	2006-10-24 20:06:55 UTC (rev 16430)
@@ -15,6 +15,9 @@
 
 int raidautorun_main(int argc, char **argv)
 {
+	if (argc != 2)
+		bb_show_usage();
+
 	if (ioctl(xopen(argv[1], O_RDONLY), RAID_AUTORUN, NULL) != 0) {
 		bb_perror_msg_and_die("ioctl");
 	}



More information about the busybox-cvs mailing list