fix off-by-one error in set_perm()

We were inadvertently skipping over the first filename in the list of
arguments.
This commit is contained in:
Doug Zongker 2009-06-25 13:37:31 -07:00
parent fbf3c10e45
commit 0bbfe3d901

View file

@ -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);
}