blockdev: make "blockdev --rereadpt /dev/sda EXTRA_ARG" complain. +6 bytes.

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
This commit is contained in:
Denys Vlasenko 2010-09-06 16:31:18 +02:00
parent 3d4a8f8646
commit a35dfe6200

View File

@ -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);