On 08/27/2016 07:42 PM, Wietse Venema wrote: >> >> Thanks. The "cp -p" feature was not portable in the days that this script >> was written, but it should be safe to use now. > > Unfortunately, I have to roll back this change, because it may > install files with non-root ownership. > > Those who built postfix-3.2-2060827 should do "postfix set-permissions" > or install postfix-3.2-2060828 which I will upload in a few minutes > time to ftp.porcupine.org.
The "-p" flag (at least in GNU coreutils) is a shortcut for, --preserve=mode,ownership,timestamps Unfortunately, the behavior of "--preserve" is not sufficiently standard. Perhaps "tar --no-same-owner" can be used as a poor man's cp, since it preserves modification times by default?