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>
This commit is contained in:
parent
18c6850fe1
commit
62f900c445
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue