1 diff -Naur a/conf/post-install b/conf/post-install
2 --- a/conf/post-install 2015-12-28 00:00:45.000000000 +0000
3 +++ b/conf/post-install 2017-08-01 22:42:30.476896711 +0000
8 + test -n "$recursive" && nonrecursive="" || nonrecursive="-maxdepth 0"
9 test -n "$set_permission" && {
10 - chown $recursive $owner $path || exit 1
11 - test -z "$group" || chgrp $recursive $group $path || exit 1
12 + find $path $nonrecursive ! -user $owner -exec chown $owner "{}" ";" || exit 1
13 + test -z "$group" || find $path $nonrecursive ! -group $group -exec chgrp $group "{}" ";" || exit 1
14 # Don't "chmod -R"; queue file status is encoded in mode bits.
15 if [ "$type" = "d" -a -n "$recursive" ]
17 - find $path -type d -exec chmod $mode "{}" ";"
18 + find $path -type d -a ! -perm $mode -exec chmod $mode "{}" ";"
21 + find $path $nonrecursive ! -perm $mode -exec chmod $mode "{}" ";"