am 0bbfe3d9: fix off-by-one error in set_perm()

Merge commit '0bbfe3d901885c1f0ab006e8d4cc1029c44a7376'

* commit '0bbfe3d901885c1f0ab006e8d4cc1029c44a7376':
  fix off-by-one error in set_perm()
This commit is contained in:
Doug Zongker 2009-06-25 14:34:03 -07:00 committed by The Android Open Source Project
commit 898ef399d3

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