diff options
Diffstat (limited to 'e2fsprogs/tune2fs.c')
-rw-r--r-- | e2fsprogs/tune2fs.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/e2fsprogs/tune2fs.c b/e2fsprogs/tune2fs.c index 95411db5f..a1caf011c 100644 --- a/e2fsprogs/tune2fs.c +++ b/e2fsprogs/tune2fs.c | |||
@@ -13,7 +13,7 @@ | |||
13 | //config: tune2fs allows the system administrator to adjust various tunable | 13 | //config: tune2fs allows the system administrator to adjust various tunable |
14 | //config: filesystem parameters on Linux ext2/ext3 filesystems. | 14 | //config: filesystem parameters on Linux ext2/ext3 filesystems. |
15 | 15 | ||
16 | //applet:IF_TUNE2FS(APPLET(tune2fs, BB_DIR_SBIN, BB_SUID_DROP)) | 16 | //applet:IF_TUNE2FS(APPLET_NOEXEC(tune2fs, tune2fs, BB_DIR_SBIN, BB_SUID_DROP, tune2fs)) |
17 | 17 | ||
18 | //TODO alias to "tune2fs -L LABEL": //applet:IF_E2LABEL(APPLET_ODDNAME(e2label, tune2fs, BB_DIR_SBIN, BB_SUID_DROP, e2label)) | 18 | //TODO alias to "tune2fs -L LABEL": //applet:IF_E2LABEL(APPLET_ODDNAME(e2label, tune2fs, BB_DIR_SBIN, BB_SUID_DROP, e2label)) |
19 | 19 | ||
@@ -71,8 +71,7 @@ int tune2fs_main(int argc UNUSED_PARAM, char **argv) | |||
71 | struct ext2_super_block *sb; | 71 | struct ext2_super_block *sb; |
72 | int fd; | 72 | int fd; |
73 | 73 | ||
74 | opt_complementary = "=1"; | 74 | opts = getopt32(argv, "^" "L:c:i:C:" "\0" "=1", &label, &str_c, &str_i, &str_C); |
75 | opts = getopt32(argv, "L:c:i:C:", &label, &str_c, &str_i, &str_C); | ||
76 | if (!opts) | 75 | if (!opts) |
77 | bb_show_usage(); | 76 | bb_show_usage(); |
78 | argv += optind; // argv[0] -- device | 77 | argv += optind; // argv[0] -- device |