From a481d87ff79d4fb56f60162c9b71710e084ae12e Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Tue, 24 Oct 2006 20:06:55 +0000 Subject: - we take exactly one argument. --- miscutils/raidautorun.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/miscutils/raidautorun.c b/miscutils/raidautorun.c index c256304..e5bce9a 100644 --- a/miscutils/raidautorun.c +++ b/miscutils/raidautorun.c @@ -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"); } -- cgit v1.1