summaryrefslogtreecommitdiffstats
path: root/updater/install.c
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2013-09-11 00:50:08 +0200
committerAndroid Git Automerger <android-git-automerger@android.com>2013-09-11 00:50:08 +0200
commitaf677d786e6333187ccbd4f7fe6f371a09b71645 (patch)
tree03e84b02cd618cebe0b41ae4e7d27e2bad805670 /updater/install.c
parentam 5dbdef0e: updater: introduce and set_metadata and set_metadata_recursive (diff)
parentDon't apply permission changes to symlink. (diff)
downloadandroid_bootable_recovery-af677d786e6333187ccbd4f7fe6f371a09b71645.tar
android_bootable_recovery-af677d786e6333187ccbd4f7fe6f371a09b71645.tar.gz
android_bootable_recovery-af677d786e6333187ccbd4f7fe6f371a09b71645.tar.bz2
android_bootable_recovery-af677d786e6333187ccbd4f7fe6f371a09b71645.tar.lz
android_bootable_recovery-af677d786e6333187ccbd4f7fe6f371a09b71645.tar.xz
android_bootable_recovery-af677d786e6333187ccbd4f7fe6f371a09b71645.tar.zst
android_bootable_recovery-af677d786e6333187ccbd4f7fe6f371a09b71645.zip
Diffstat (limited to 'updater/install.c')
-rw-r--r--updater/install.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/updater/install.c b/updater/install.c
index 770dbd09e..0a859452a 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",