mail-filter/postgrey: Drop unnecessary hack for socket permissions

postgrey --help says:
         --socketmode=MODE   unix socket permission (default 0666)

and indeed the socket is created with the correct a+rw,a-x permissions.
The hack in start() is therefore redundant and can be dropped.

Bug: https://bugs.gentoo.org/603258
Part-of: https://codeberg.org/gentoo/gentoo/pulls/1065
Merges: https://codeberg.org/gentoo/gentoo/pulls/1065
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
This commit is contained in:
Ulrich Müller
2026-06-05 08:40:25 +02:00
parent 2cd708c07b
commit f0cab1ad63

View File

@@ -56,12 +56,6 @@ start() {
checkconfig || return 1
ebegin "Starting Postgrey"
# HACK -- start a subshell and corrects perms on the socket...
if [ "x${POSTGREY_TYPE}" = "xunix" ]; then
rm -f ${POSTGREY_SOCKET}
( while ! test -S ${POSTGREY_SOCKET}; do sleep 1; done; chmod a+rw,a-x ${POSTGREY_SOCKET} ) &
fi
if [ -z ${POSTGREY_DELAY} ] ; then
POSTGREY_DELAY_ARG=""
else