sfdisk: correct --json --dump false exclusive

`--json` implies `--dump`, thus `--json --dump` must be
allowed. `--list-free` is incompatible with `--dump`, and thus also
with `--json`. Currently `--json --dump` is prohibited, even though
`--list-free` is not specified at all.

Regression introduced in 03154d2cf2.

Signed-off-by: Dimitri John Ledkov <xnox@ubuntu.com>
This commit is contained in:
Dimitri John Ledkov 2020-11-04 12:35:38 +00:00
parent ebb5ca72f4
commit d7101e5911
No known key found for this signature in database
GPG Key ID: 9B8EC849D5EF70ED
1 changed files with 2 additions and 1 deletions

View File

@ -2165,7 +2165,8 @@ int main(int argc, char *argv[])
{ NULL, 0, NULL, 0 },
};
static const ul_excl_t excl[] = { /* rows and cols in ASCII order */
{ 'F','J','d'}, /* --list-free --json --dump */
{ 'F','d'}, /* --list-free --dump */
{ 'F','J'}, /* --list-free --json */
{ 's','u'}, /* --show-size --unit */
{ 0 }
};