bpo-24538: Fix bug in shutil involving the copying of xattrs to read-only files. (PR-13212)

Extended attributes can only be set on user-writeable files, but shutil previously
first chmod()ed the destination file to the source's permissions and then tried to
copy xattrs. This will cause failures if attempting to copy read-only files with
xattrs, as occurs with Git clones on Lustre FS.
This commit is contained in:
Olexa Bilaniuk 2019-05-09 22:22:06 -05:00 committed by Giampaolo Rodola
parent 948ed8c96b
commit 79efbb7193
4 changed files with 15 additions and 1 deletions

View file

@ -149,6 +149,7 @@ Stephen Bevan
Ron Bickers
Natalia B. Bidart
Adrian von Bidder
Olexa Bilaniuk
David Binger
Dominic Binks
Philippe Biondi