diff options
author | Eric Sandeen <sandeen@redhat.com> | 2016-01-18 20:11:01 -0600 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2016-01-19 11:20:46 +0100 |
commit | ab2bf5b51a1ca14cef63e8a7a88b039f173a210a (patch) | |
tree | 9c3051107d29e7b098f1f6bc942df763c4c77b61 | |
parent | cd9dff0b5b53279442458360003831b6c14adc22 (diff) |
repquota: -F option takes an arg
Commit a5876145 added a new -O option which takes an
argument, but in the process lost the argument specifier
for "F". As a result, the use of "-F" segfaults when NULL
is sent to name2fmt() instead of the provided argument.
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Jan Kara <jack@suse.cz>
-rw-r--r-- | repquota.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -90,7 +90,7 @@ static void parse_options(int argcnt, char **argstr) { NULL, 0, NULL, 0 } }; - while ((ret = getopt_long(argcnt, argstr, "VavughtspncCiFO:", long_opts, NULL)) != -1) { + while ((ret = getopt_long(argcnt, argstr, "VavughtspncCiF:O:", long_opts, NULL)) != -1) { switch (ret) { case '?': case 'h': |