SHA256
1
0
forked from pool/postfix
postfix/fix-postfix-script.patch
Peter Varkoly 535d279360 Accepting request 529111 from home:varkoly:branches:server:mail
- bnc#1016491 postfix raported to log "warning: group or other writable:"
   on each symlink in config.

OBS-URL: https://build.opensuse.org/request/show/529111
OBS-URL: https://build.opensuse.org/package/show/server:mail/postfix?expand=0&rev=276
2017-09-28 14:24:06 +00:00

23 lines
623 B
Diff

--- conf/postfix-script 2016-01-31 16:05:46.000000000 -0500
+++ conf/postfix-script 2016-03-01 19:23:51.000000000 -0500
@@ -272,10 +277,17 @@
}
todo=`echo "$todo" | tr ' ' '\12' | sort -u`
- find $todo ! -user root \
+ if find -L $config_directory/main.cf >/dev/null 2>&1
+ then
+ FIND="find -L"
+ else
+ FIND=find
+ fi
+
+ $FIND $todo ! -user root \
-exec $WARN not owned by root: {} \;
- find $todo \( -perm -020 -o -perm -002 \) \
+ $FIND $todo \( -perm -020 -o -perm -002 \) \
-exec $WARN group or other writable: {} \;
# Check Postfix mail_owner-owned directory tree owner/permissions.