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>
master
David Sterba 2016-06-16 13:27:26 +02:00
parent 18c6850fe1
commit 62f900c445
1 changed files with 1 additions and 1 deletions

View File

@ -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);