From: Denys Vlasenko Date: Mon, 6 Sep 2010 14:31:18 +0000 (+0200) Subject: blockdev: make "blockdev --rereadpt /dev/sda EXTRA_ARG" complain. +6 bytes. X-Git-Tag: 1_18_0~247 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a35dfe62004abaa116d01155605e3f3df379688c;p=oweals%2Fbusybox.git blockdev: make "blockdev --rereadpt /dev/sda EXTRA_ARG" complain. +6 bytes. Signed-off-by: Denys Vlasenko --- 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);