- we take exactly one argument.
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Tue, 24 Oct 2006 20:06:55 +0000 (20:06 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Tue, 24 Oct 2006 20:06:55 +0000 (20:06 -0000)
miscutils/raidautorun.c

index c2563049444fde6b8e4114d6f1125f22485c9c6d..e5bce9a92f47b48e748db71a17362d66fb2d67d8 100644 (file)
@@ -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");
        }