aboutsummaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
authorDenys Vlasenko <dvlasenk@redhat.com>2010-09-06 16:31:18 +0200
committerDenys Vlasenko <dvlasenk@redhat.com>2010-09-06 16:31:18 +0200
commita35dfe62004abaa116d01155605e3f3df379688c (patch)
treec5c8ee89214295db5e287051b6e1d95e76ce67d3 /util-linux
parent3d4a8f864693e6a079a78db2290708554b130cb8 (diff)
downloadbusybox-a35dfe62004abaa116d01155605e3f3df379688c.tar.gz
blockdev: make "blockdev --rereadpt /dev/sda EXTRA_ARG" complain. +6 bytes.
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'util-linux')
-rw-r--r--util-linux/blockdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/blockdev.c b/util-linux/blockdev.c
index 9b5d86d00..a780d2238 100644
--- a/util-linux/blockdev.c
+++ b/util-linux/blockdev.c
@@ -142,7 +142,7 @@ int blockdev_main(int argc, char **argv)
lu = llu;
iarg = llu;
- if (!*++argv)
+ if (!*++argv || argv[1])
bb_show_usage();
fd = xopen(*argv, O_RDONLY);