From f0cab1ad63e9a14a73a43dbcd4f7fac0b1f2767b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ulrich=20M=C3=BCller?= Date: Fri, 5 Jun 2026 08:40:25 +0200 Subject: [PATCH] mail-filter/postgrey: Drop unnecessary hack for socket permissions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- mail-filter/postgrey/files/postgrey-1.37.initd | 6 ------ 1 file changed, 6 deletions(-) diff --git a/mail-filter/postgrey/files/postgrey-1.37.initd b/mail-filter/postgrey/files/postgrey-1.37.initd index 9395f5281f823..534c0a7e08a04 100644 --- a/mail-filter/postgrey/files/postgrey-1.37.initd +++ b/mail-filter/postgrey/files/postgrey-1.37.initd @@ -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