aboutsummaryrefslogtreecommitdiffstats
path: root/cmds-filesystem.c
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 /cmds-filesystem.c
parent18c6850fe1d06a31834da340387f94a6940197b9 (diff)
downloadbtrfs-progs-62f900c44590ff4f31ba04fff629fcd1c822e6e3.tar.gz
btrfs-progs-62f900c44590ff4f31ba04fff629fcd1c822e6e3.tar.xz
btrfs-progs-62f900c44590ff4f31ba04fff629fcd1c822e6e3.zip
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>
Diffstat (limited to 'cmds-filesystem.c')
-rw-r--r--cmds-filesystem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds-filesystem.c b/cmds-filesystem.c
index e27cb26..88867a3 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);