Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 53e8f309 authored by Nick Kralevich's avatar Nick Kralevich Committed by Android Git Automerger
Browse files

am af677d78: am e461251e: Don\'t apply permission changes to symlink.

* commit 'af677d78':
  Don't apply permission changes to symlink.
parents c724eee5 af677d78
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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",