* src/copy.c (copy_internal): Honor the x->require_preserve flag
for symlinks as we do for ordinary files, so we don't exit with
failure upon failure to chown a symbolic link.
* NEWS: Mention the bug fix.
** Bug fixes
+ cp and mv now only warn about failure to preserve ownership of symlinks.
+ cp (without -p) will no longer exit with a failure status, and mv will
+ also no longer leave such symlinks remaining in the source file system.
+ [the bug dates back to the initial implementation]
+
date and touch no longer overwrite the heap with large
user specified TZ values (CVE-2017-7476).
[bug introduced in coreutils-8.27]
{
error (0, errno, _("failed to preserve ownership for %s"),
dst_name);
- goto un_backup;
+ if (x->require_preserve)
+ goto un_backup;
}
else
{