From 0bbfe3d901885c1f0ab006e8d4cc1029c44a7376 Mon Sep 17 00:00:00 2001 From: Doug Zongker Date: Thu, 25 Jun 2009 13:37:31 -0700 Subject: fix off-by-one error in set_perm() We were inadvertently skipping over the first filename in the list of arguments. --- updater/install.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'updater') diff --git a/updater/install.c b/updater/install.c index e1f3c9acf..c4f5e0341 100644 --- a/updater/install.c +++ b/updater/install.c @@ -422,7 +422,7 @@ char* SetPermFn(const char* name, State* state, int argc, Expr* argv[]) { goto done; } - for (i = 4; i < argc; ++i) { + for (i = 3; i < argc; ++i) { chown(args[i], uid, gid); chmod(args[i], mode); } -- cgit v1.2.3