diff options
Diffstat (limited to 'util-linux/fsfreeze.c')
-rw-r--r-- | util-linux/fsfreeze.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/util-linux/fsfreeze.c b/util-linux/fsfreeze.c index 5c10c8044..2e2257337 100644 --- a/util-linux/fsfreeze.c +++ b/util-linux/fsfreeze.c | |||
@@ -13,7 +13,7 @@ | |||
13 | //config: help | 13 | //config: help |
14 | //config: Halt new accesses and flush writes on a mounted filesystem. | 14 | //config: Halt new accesses and flush writes on a mounted filesystem. |
15 | 15 | ||
16 | //applet:IF_FSFREEZE(APPLET(fsfreeze, BB_DIR_USR_SBIN, BB_SUID_DROP)) | 16 | //applet:IF_FSFREEZE(APPLET_NOEXEC(fsfreeze, fsfreeze, BB_DIR_USR_SBIN, BB_SUID_DROP, fsfreeze)) |
17 | 17 | ||
18 | //kbuild:lib-$(CONFIG_FSFREEZE) += fsfreeze.o | 18 | //kbuild:lib-$(CONFIG_FSFREEZE) += fsfreeze.o |
19 | 19 | ||
@@ -36,15 +36,15 @@ int fsfreeze_main(int argc UNUSED_PARAM, char **argv) | |||
36 | unsigned opts; | 36 | unsigned opts; |
37 | int fd; | 37 | int fd; |
38 | 38 | ||
39 | applet_long_options = | ||
40 | "freeze\0" No_argument "\xff" | ||
41 | "unfreeze\0" No_argument "\xfe" | ||
42 | ; | ||
43 | /* exactly one non-option arg: the mountpoint */ | 39 | /* exactly one non-option arg: the mountpoint */ |
44 | /* one of opts is required */ | 40 | /* one of opts is required */ |
45 | /* opts are mutually exclusive */ | 41 | /* opts are mutually exclusive */ |
46 | opt_complementary = "=1:""\xff:\xfe:""\xff--\xfe:\xfe--\xff"; | 42 | opts = getopt32long(argv, "^" |
47 | opts = getopt32(argv, ""); | 43 | "" /* no opts */ |
44 | "\0" "=1:""\xff:\xfe:""\xff--\xfe:\xfe--\xff", | ||
45 | "freeze\0" No_argument "\xff" | ||
46 | "unfreeze\0" No_argument "\xfe" | ||
47 | ); | ||
48 | 48 | ||
49 | fd = xopen(argv[optind], O_RDONLY); | 49 | fd = xopen(argv[optind], O_RDONLY); |
50 | /* Works with NULL arg on linux-4.8.0 */ | 50 | /* Works with NULL arg on linux-4.8.0 */ |