From 26641e8d32df6448ec06e5e62f23b97bf006e710 Mon Sep 17 00:00:00 2001 From: Ahmed Date: Wed, 30 Jul 2008 09:17:21 -0400 Subject: 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" --- btrfsctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'btrfsctl.c') 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"); -- cgit v1.2.3