summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2016-06-16 13:27:26 +0200
committerDavid Sterba <dsterba@suse.com>2016-06-17 17:02:12 +0200
commit62f900c44590ff4f31ba04fff629fcd1c822e6e3 (patch)
treedfd4652dd732bbfdaab93993ce72017bc58b1c86
parent18c6850fe1d06a31834da340387f94a6940197b9 (diff)
btrfs-progs: fi resize: fix parsing of negative argument
The cleanup of option parsing caused a regression where the negative resize argument is recognized as short options and the command fails. Use the new helper to allow that. Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=119971 Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r--cmds-filesystem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds-filesystem.c b/cmds-filesystem.c
index e27cb263..88867a3d 100644
--- a/cmds-filesystem.c
+++ b/cmds-filesystem.c
@@ -1184,7 +1184,7 @@ static int cmd_filesystem_resize(int argc, char **argv)
DIR *dirstream = NULL;
struct stat st;
- clean_args_no_options(argc, argv, cmd_filesystem_resize_usage);
+ clean_args_no_options_relaxed(argc, argv, cmd_filesystem_resize_usage);
if (check_argc_exact(argc - optind, 2))
usage(cmd_filesystem_resize_usage);