diff options
author | Lars Wendler <polynomial-c@gentoo.org> | 2019-04-24 14:39:05 +0200 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2019-04-24 14:39:19 +0200 |
commit | d3d0b840746804723df05de43d65403bce3b64c7 (patch) | |
tree | 908f3f375a4447ae724283aa15733d6077039a9a /app-misc | |
parent | dev-db/lmdb-0.9.23-r0: alpha stable (diff) | |
download | gentoo-d3d0b840746804723df05de43d65403bce3b64c7.tar.gz gentoo-d3d0b840746804723df05de43d65403bce3b64c7.tar.bz2 gentoo-d3d0b840746804723df05de43d65403bce3b64c7.zip |
app-misc/uptimed: And another attempt to fix privilege escalation
Closes: https://bugs.gentoo.org/630810
Package-Manager: Portage-2.3.64, Repoman-2.3.12
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'app-misc')
-rw-r--r-- | app-misc/uptimed/uptimed-0.4.0-r1.ebuild | 5 | ||||
-rw-r--r-- | app-misc/uptimed/uptimed-0.4.1-r1.ebuild | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/app-misc/uptimed/uptimed-0.4.0-r1.ebuild b/app-misc/uptimed/uptimed-0.4.0-r1.ebuild index ce315a00fa4e..b57ecd03da98 100644 --- a/app-misc/uptimed/uptimed-0.4.0-r1.ebuild +++ b/app-misc/uptimed/uptimed-0.4.0-r1.ebuild @@ -49,8 +49,9 @@ pkg_postinst() { local spooldir="/var/spool/${PN}" if [[ -d "${spooldir}" ]] ; then einfo "Fixing permissions in ${spooldir}" - find ${spooldir} -type f -links 1 -print0 \ - | xargs --null chown uptimed:uptimed || die + find ${spooldir} -type f -links 1 \ + \( -name records -o -name records.old \) \ + | xargs chown uptimed:uptimed || die fi echo elog "Start uptimed with '/etc/init.d/uptimed start' (for openRC)" diff --git a/app-misc/uptimed/uptimed-0.4.1-r1.ebuild b/app-misc/uptimed/uptimed-0.4.1-r1.ebuild index 02f2ea8899c2..bd5bc67239ee 100644 --- a/app-misc/uptimed/uptimed-0.4.1-r1.ebuild +++ b/app-misc/uptimed/uptimed-0.4.1-r1.ebuild @@ -47,8 +47,9 @@ pkg_postinst() { local spooldir="/var/spool/${PN}" if [[ -d "${spooldir}" ]] ; then einfo "Fixing permissions in ${spooldir}" - find ${spooldir} -type f -links 1 -print0 \ - | xargs --null chown uptimed:uptimed || die + find ${spooldir} -type f -links 1 \ + \( -name records -o -name records.old \) \ + | xargs chown uptimed:uptimed || die fi echo elog "Start uptimed with '/etc/init.d/uptimed start' (for openRC)" |