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:
parent
fbf3c10e45
commit
0bbfe3d901
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue