diff options
author | Nick Kralevich <nnk@google.com> | 2013-09-10 15:50:08 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2013-09-10 15:50:08 -0700 |
commit | af677d786e6333187ccbd4f7fe6f371a09b71645 (patch) | |
tree | 03e84b02cd618cebe0b41ae4e7d27e2bad805670 | |
parent | cc421662d7f9b68627204b8c8bfb4a5cada74125 (diff) | |
parent | e461251e2caa5561cf6a315bffaebfd4eb896b1d (diff) | |
download | bootable_recovery-af677d786e6333187ccbd4f7fe6f371a09b71645.zip bootable_recovery-af677d786e6333187ccbd4f7fe6f371a09b71645.tar.gz bootable_recovery-af677d786e6333187ccbd4f7fe6f371a09b71645.tar.bz2 |
am e461251e: Don\'t apply permission changes to symlink.
* commit 'e461251e2caa5561cf6a315bffaebfd4eb896b1d':
Don't apply permission changes to symlink.
-rw-r--r-- | updater/install.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/updater/install.c b/updater/install.c index 770dbd0..0a85945 100644 --- a/updater/install.c +++ b/updater/install.c @@ -726,6 +726,11 @@ static int ApplyParsedPerms( { int bad = 0; + /* ignore symlinks */ + if (S_ISLNK(statptr->st_mode)) { + return 0; + } + if (parsed.has_uid) { if (chown(filename, parsed.uid, -1) < 0) { printf("ApplyParsedPerms: chown of %s to %d failed: %s\n", |