diff options
Diffstat (limited to 'util-linux/mkfs_minix.c')
-rw-r--r-- | util-linux/mkfs_minix.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/util-linux/mkfs_minix.c b/util-linux/mkfs_minix.c index 3fbdc2020..60031a5c3 100644 --- a/util-linux/mkfs_minix.c +++ b/util-linux/mkfs_minix.c | |||
@@ -627,7 +627,7 @@ int mkfs_minix_main(int argc ATTRIBUTE_UNUSED, char **argv) | |||
627 | unsigned opt; | 627 | unsigned opt; |
628 | char *tmp; | 628 | char *tmp; |
629 | struct stat statbuf; | 629 | struct stat statbuf; |
630 | char *str_i, *str_n; | 630 | char *str_i; |
631 | char *listfile = NULL; | 631 | char *listfile = NULL; |
632 | 632 | ||
633 | INIT_G(); | 633 | INIT_G(); |
@@ -643,13 +643,13 @@ int mkfs_minix_main(int argc ATTRIBUTE_UNUSED, char **argv) | |||
643 | bb_error_msg_and_die("bad inode size"); | 643 | bb_error_msg_and_die("bad inode size"); |
644 | #endif | 644 | #endif |
645 | 645 | ||
646 | opt = getopt32(argv, "ci:l:n:v", &str_i, &listfile, &str_n); | 646 | opt_complementary = "n+"; /* -n N */ |
647 | opt = getopt32(argv, "ci:l:n:v", &str_i, &listfile, &G.namelen); | ||
647 | argv += optind; | 648 | argv += optind; |
648 | //if (opt & 1) -c | 649 | //if (opt & 1) -c |
649 | if (opt & 2) G.req_nr_inodes = xatoul(str_i); // -i | 650 | if (opt & 2) G.req_nr_inodes = xatoul(str_i); // -i |
650 | //if (opt & 4) -l | 651 | //if (opt & 4) -l |
651 | if (opt & 8) { // -n | 652 | if (opt & 8) { // -n |
652 | G.namelen = xatoi_u(str_n); | ||
653 | if (G.namelen == 14) G.magic = MINIX1_SUPER_MAGIC; | 653 | if (G.namelen == 14) G.magic = MINIX1_SUPER_MAGIC; |
654 | else if (G.namelen == 30) G.magic = MINIX1_SUPER_MAGIC2; | 654 | else if (G.namelen == 30) G.magic = MINIX1_SUPER_MAGIC2; |
655 | else bb_show_usage(); | 655 | else bb_show_usage(); |