net-im/ejabberd: Reapply read bit on epam wrapper
authorAmadeusz Żołnowski <aidecoe@gentoo.org>
Sat, 27 Aug 2016 12:42:24 +0000 (13:42 +0100)
committerAmadeusz Żołnowski <aidecoe@gentoo.org>
Sat, 27 Aug 2016 13:12:50 +0000 (14:12 +0100)
sfperms drops read bit from files with suid. Reapply it.

Gentoo-Bug: 592218

net-im/ejabberd/ejabberd-16.04-r1.ebuild

index 33a62583a60f5b6594be7cfbacf7634f680aed53..ab1239189a80e659a06a0369e83b67aeaf1cade7 100644 (file)
@@ -288,4 +288,12 @@ pkg_postinst() {
        if ! ejabberd_cert_exists; then
                ejabberd_cert_install
        fi
+
+       if use pam; then
+               # sfperms drops read bit from files with suid. Reapply it.
+               # Fix bug #592218.
+               local epam_path="$(get_ejabberd_path)/priv/bin/epam"
+               chmod g+r "${EROOT%/}${epam_path}" \
+                       || die "failed to correct ${epam_path} permissions"
+       fi
 }