mkfs_ext2: fix handling of -I argument
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 18 Jun 2010 09:47:45 +0000 (11:47 +0200)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 18 Jun 2010 09:47:45 +0000 (11:47 +0200)
-I <unsigned int> but was treated as a character

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
util-linux/mkfs_ext2.c

index fd54734fc0cd4e9cfad8b098dc2e37d240f6385d..388bd7b8807328040e8ebba3e8014f20945c2170 100644 (file)
@@ -210,7 +210,7 @@ int mkfs_ext2_main(int argc UNUSED_PARAM, char **argv)
 
        // using global "option_mask32" instead of local "opts":
        // we are register starved here
-       opt_complementary = "-1:b+:m+:i+";
+       opt_complementary = "-1:b+:i+:I+:m+";
        /*opts =*/ getopt32(argv, "cl:b:f:i:I:J:G:N:m:o:g:L:M:O:r:E:T:U:jnqvFS",
                NULL, &bs, NULL, &bpi, &user_inodesize, NULL, NULL, NULL,
                &reserved_percent, NULL, NULL, &label, NULL, NULL, NULL, NULL, NULL, NULL);