diff options
Diffstat (limited to 'util-linux/fsfreeze.c')
-rw-r--r-- | util-linux/fsfreeze.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/util-linux/fsfreeze.c b/util-linux/fsfreeze.c index c1f31569f..af715da5e 100644 --- a/util-linux/fsfreeze.c +++ b/util-linux/fsfreeze.c @@ -36,15 +36,14 @@ int fsfreeze_main(int argc UNUSED_PARAM, char **argv) unsigned opts; int fd; - applet_long_options = - "freeze\0" No_argument "\xff" - "unfreeze\0" No_argument "\xfe" - ; /* exactly one non-option arg: the mountpoint */ /* one of opts is required */ /* opts are mutually exclusive */ opt_complementary = "=1:""\xff:\xfe:""\xff--\xfe:\xfe--\xff"; - opts = getopt32(argv, ""); + opts = getopt32long(argv, "", + "freeze\0" No_argument "\xff" + "unfreeze\0" No_argument "\xfe" + ); fd = xopen(argv[optind], O_RDONLY); /* Works with NULL arg on linux-4.8.0 */ |