0
0
mirror of https://github.com/openwrt/packages.git synced 2025-02-07 05:49:50 +00:00
packages/mail/postfix/patches/900_less_overlayfs_rewrites.patch
Rosen Penev c7a52d9a95 postfix: Update to 3.4.4
Switched to HTTP from FTP for one of the mirrors.

Rebased Patches.

Removed ENGINES patch as it is only relevant for OpenSSL 1.0.2.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-03-28 19:50:14 -07:00

24 lines
912 B
Diff

--- a/conf/post-install
+++ b/conf/post-install
@@ -566,15 +566,16 @@ test -n "$create" && {
then
set_permission=1
fi
+ test -n "$recursive" && nonrecursive="" || nonrecursive="-maxdepth 0"
test -n "$set_permission" && {
- chown $recursive $owner $path || exit 1
- test -z "$group" || chgrp $recursive $group $path || exit 1
+ find $path $nonrecursive ! -user $owner -exec chown $owner "{}" ";" || exit 1
+ test -z "$group" || find $path $nonrecursive ! -group $group -exec chgrp $group "{}" ";" || exit 1
# Don't "chmod -R"; queue file status is encoded in mode bits.
if [ "$type" = "d" -a -n "$recursive" ]
then
- find $path -type d -exec chmod $mode "{}" ";"
+ find $path -type d -a ! -perm $mode -exec chmod $mode "{}" ";"
else
- chmod $mode $path
+ find $path $nonrecursive ! -perm $mode -exec chmod $mode "{}" ";"
fi || exit 1
}
done