mirror of
https://github.com/kdave/btrfs-progs
synced 2024-12-27 16:42:17 +00:00
Fix: btrfsctl arguments handling
btrfsctl -A in the current -unstable branch, does not result in the error message designated for it, namely "-A requires an arg\n"
This commit is contained in:
parent
48c2290d4c
commit
26641e8d32
@ -75,7 +75,7 @@ int main(int ac, char **av)
|
||||
btrfs_scan_one_dir("/dev", 1);
|
||||
exit(0);
|
||||
}
|
||||
for (i = 1; i < ac - 1; i++) {
|
||||
for (i = 1; i < ac; i++) {
|
||||
if (strcmp(av[i], "-s") == 0) {
|
||||
if (i + 1 >= ac - 1) {
|
||||
fprintf(stderr, "-s requires an arg");
|
||||
|
Loading…
Reference in New Issue
Block a user