535d279360
- 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
23 lines
623 B
Diff
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.
|