From e461251e2caa5561cf6a315bffaebfd4eb896b1d Mon Sep 17 00:00:00 2001 From: Nick Kralevich Date: Tue, 10 Sep 2013 15:34:19 -0700 Subject: Don't apply permission changes to symlink. Bug: 10183961 Bug: 10186213 Bug: 8985290 Change-Id: I57cb14af59682c5f25f1e091564548bdbf20f74e --- updater/install.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'updater/install.c') 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", -- cgit v1.1