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
@ -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 New Issue
Block a user