Addresses-Debian-Bug: #758074 Signed-off-by: Theodore Ts'o <tytso@xxxxxxx> --- misc/dumpe2fs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/misc/dumpe2fs.c b/misc/dumpe2fs.c index cc18ad8..1eae5a3 100644 --- a/misc/dumpe2fs.c +++ b/misc/dumpe2fs.c @@ -575,8 +575,10 @@ int main (int argc, char ** argv) usage(); } } - if (optind > argc - 1) + if (argc - 1 > optind) { usage(); + exit(1); + } device_name = argv[optind++]; flags = EXT2_FLAG_JOURNAL_DEV_OK | EXT2_FLAG_SOFTSUPP_FEATURES | EXT2_FLAG_64BITS; if (force) -- 2.1.0 -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html