btrfs-progs: fi resize: fix parsing of negative argument
authorDavid Sterba <dsterba@suse.com>
Thu, 16 Jun 2016 11:27:26 +0000 (13:27 +0200)
committerDavid Sterba <dsterba@suse.com>
Fri, 17 Jun 2016 15:02:12 +0000 (17:02 +0200)
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>
cmds-filesystem.c

index e27cb26..88867a3 100644 (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);