From a35dfe62004abaa116d01155605e3f3df379688c Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Mon, 6 Sep 2010 16:31:18 +0200 Subject: [PATCH] blockdev: make "blockdev --rereadpt /dev/sda EXTRA_ARG" complain. +6 bytes. Signed-off-by: Denys Vlasenko --- util-linux/blockdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.25.1