From 0bcbf8c044db39ef82e24bbdcecf376c28168c8a Mon Sep 17 00:00:00 2001 From: andersen Date: Thu, 26 Apr 2001 14:56:45 +0000 Subject: Fix a silly off-by-one error noticed by Santiago Garcia Mantinan -Erik git-svn-id: svn://busybox.net/trunk/busybox@2448 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- coreutils/chmod.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'coreutils/chmod.c') diff --git a/coreutils/chmod.c b/coreutils/chmod.c index 5e12e76b9..f22e5d06f 100644 --- a/coreutils/chmod.c +++ b/coreutils/chmod.c @@ -66,7 +66,7 @@ int chmod_main(int argc, char **argv) } /* Ok, ready to do the deed now */ - while (optind++ < argc) { + while (optind++ < argc-1) { if (recursive_action (argv[optind], recursiveFlag, FALSE, FALSE, fileAction, fileAction, NULL) == FALSE) { return EXIT_FAILURE; -- cgit v1.2.3-55-g6feb