mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
copy: don't fail when unable to chown symlinks
* 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.
This commit is contained in:
1 parent
6ebaf81950
commit
f1de9740e6
2 files changed
+7
-1
No files matched your search
@@ -4,6 +4,11 @@ GNU coreutils NEWS -*- outline -*-
|
||||
|
||||
** 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]
|
||||
|
||||
+2
-1
@@ -2714,7 +2714,8 @@ copy_internal (char const *src_name, char const *dst_name,
|
||||
{
|
||||
error (0, errno, _("failed to preserve ownership for %s"),
|
||||
dst_name);
|
||||
goto un_backup;
|
||||
if (x->require_preserve)
|
||||
goto un_backup;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user