Loading updater/install.c +9 −10 Original line number Diff line number Diff line Loading @@ -770,9 +770,17 @@ static int ApplyParsedPerms( { int bad = 0; if (parsed.has_selabel) { if (lsetfilecon(filename, parsed.selabel) != 0) { uiPrintf(state, "ApplyParsedPerms: lsetfilecon of %s to %s failed: %s\n", filename, parsed.selabel, strerror(errno)); bad++; } } /* ignore symlinks */ if (S_ISLNK(statptr->st_mode)) { return 0; return bad; } if (parsed.has_uid) { Loading Loading @@ -815,15 +823,6 @@ static int ApplyParsedPerms( } } if (parsed.has_selabel) { // TODO: Don't silently ignore ENOTSUP if (lsetfilecon(filename, parsed.selabel) && (errno != ENOTSUP)) { uiPrintf(state, "ApplyParsedPerms: lsetfilecon of %s to %s failed: %s\n", filename, parsed.selabel, strerror(errno)); bad++; } } if (parsed.has_capabilities && S_ISREG(statptr->st_mode)) { if (parsed.capabilities == 0) { if ((removexattr(filename, XATTR_NAME_CAPS) == -1) && (errno != ENODATA)) { Loading Loading
updater/install.c +9 −10 Original line number Diff line number Diff line Loading @@ -770,9 +770,17 @@ static int ApplyParsedPerms( { int bad = 0; if (parsed.has_selabel) { if (lsetfilecon(filename, parsed.selabel) != 0) { uiPrintf(state, "ApplyParsedPerms: lsetfilecon of %s to %s failed: %s\n", filename, parsed.selabel, strerror(errno)); bad++; } } /* ignore symlinks */ if (S_ISLNK(statptr->st_mode)) { return 0; return bad; } if (parsed.has_uid) { Loading Loading @@ -815,15 +823,6 @@ static int ApplyParsedPerms( } } if (parsed.has_selabel) { // TODO: Don't silently ignore ENOTSUP if (lsetfilecon(filename, parsed.selabel) && (errno != ENOTSUP)) { uiPrintf(state, "ApplyParsedPerms: lsetfilecon of %s to %s failed: %s\n", filename, parsed.selabel, strerror(errno)); bad++; } } if (parsed.has_capabilities && S_ISREG(statptr->st_mode)) { if (parsed.capabilities == 0) { if ((removexattr(filename, XATTR_NAME_CAPS) == -1) && (errno != ENODATA)) { Loading