summaryrefslogtreecommitdiff
path: root/btrfsctl.c
diff options
context:
space:
mode:
authorAhmed <email.ahmedkamal@googlemail.com>2008-07-30 09:17:21 -0400
committerDavid Woodhouse <dwmw2@hera.kernel.org>2008-07-30 09:17:21 -0400
commit26641e8d32df6448ec06e5e62f23b97bf006e710 (patch)
tree8345a0bf2535894c3b16dece8a46bbf37120ba6c /btrfsctl.c
parent48c2290d4c06239cb788759b898c039e5fe3d009 (diff)
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"
Diffstat (limited to 'btrfsctl.c')
-rw-r--r--btrfsctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/btrfsctl.c b/btrfsctl.c
index 0cdf2726..cc1b1ff0 100644
--- a/btrfsctl.c
+++ b/btrfsctl.c
@@ -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");