commit | 0bbfe3d901885c1f0ab006e8d4cc1029c44a7376 | [log] [tgz] |
---|---|---|
author | Doug Zongker <dougz@android.com> | Thu Jun 25 13:37:31 2009 -0700 |
committer | Doug Zongker <dougz@android.com> | Thu Jun 25 13:37:31 2009 -0700 |
tree | 7a6abda5856a0fc4e62d94a1ad89c145a3d41c45 | |
parent | fbf3c10e45c20f8fe6bd1ac49ffe220035b9c454 [diff] |
fix off-by-one error in set_perm() We were inadvertently skipping over the first filename in the list of arguments.
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 @@ goto done; } - for (i = 4; i < argc; ++i) { + for (i = 3; i < argc; ++i) { chown(args[i], uid, gid); chmod(args[i], mode); }