diff options
author | Ahmed <email.ahmedkamal@googlemail.com> | 2008-07-30 09:17:21 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2008-07-30 09:17:21 -0400 |
commit | 26641e8d32df6448ec06e5e62f23b97bf006e710 (patch) | |
tree | 8345a0bf2535894c3b16dece8a46bbf37120ba6c | |
parent | 48c2290d4c06239cb788759b898c039e5fe3d009 (diff) | |
download | btrfs-progs-26641e8d32df6448ec06e5e62f23b97bf006e710.tar.gz |
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"
-rw-r--r-- | btrfsctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"); |