Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-10-25 00:06:55 +0400
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-10-25 00:06:55 +0400
commita481d87ff79d4fb56f60162c9b71710e084ae12e (patch)
tree432ee56dd04a81b9a491abc9369a72965a9304ec /miscutils
parent7534e0834f9ed5059a90a2a5508a6fcdbf8769dc (diff)
- we take exactly one argument.
Diffstat (limited to 'miscutils')
-rw-r--r--miscutils/raidautorun.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/miscutils/raidautorun.c b/miscutils/raidautorun.c
index c25630494..e5bce9a92 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");
}