mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user