diff options
author | Doug Zongker <dougz@android.com> | 2009-06-25 13:37:31 -0700 |
---|---|---|
committer | Doug Zongker <dougz@android.com> | 2009-06-25 13:37:31 -0700 |
commit | 0bbfe3d901885c1f0ab006e8d4cc1029c44a7376 (patch) | |
tree | 7a6abda5856a0fc4e62d94a1ad89c145a3d41c45 /updater/install.c | |
parent | fbf3c10e45c20f8fe6bd1ac49ffe220035b9c454 (diff) | |
download | bootable_recovery-0bbfe3d901885c1f0ab006e8d4cc1029c44a7376.zip bootable_recovery-0bbfe3d901885c1f0ab006e8d4cc1029c44a7376.tar.gz bootable_recovery-0bbfe3d901885c1f0ab006e8d4cc1029c44a7376.tar.bz2 |
fix off-by-one error in set_perm()
We were inadvertently skipping over the first filename in the list of
arguments.
Diffstat (limited to 'updater/install.c')
-rw-r--r-- | updater/install.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/updater/install.c b/updater/install.c index e1f3c9a..c4f5e03 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); } |