summaryrefslogtreecommitdiffstats
path: root/Lib/shutil.py
diff options
context:
space:
mode:
authorAllan Lago <35788148+alago1@users.noreply.github.com>2023-04-25 00:45:38 (GMT)
committerGitHub <noreply@github.com>2023-04-25 00:45:38 (GMT)
commit3df3b91e6a0d84bcb954ec894d17f4603bdf428f (patch)
tree982bdab0c43122b869346decd4208b899c723df1 /Lib/shutil.py
parentb51da991e2f7b47efaee2665356060edb6a6ece4 (diff)
downloadcpython-3df3b91e6a0d84bcb954ec894d17f4603bdf428f.zip
cpython-3df3b91e6a0d84bcb954ec894d17f4603bdf428f.tar.gz
cpython-3df3b91e6a0d84bcb954ec894d17f4603bdf428f.tar.bz2
gh-82814: fix shutil access error on WSL (#103790)
gh-82814: Adds `errno.EACCES` to the list of ignored errors on `_copyxattr`. EPERM and EACCES are different constants but in general should be treated the same. News entry authored by: Gregory P. Smith <greg@krypto.org>
Diffstat (limited to 'Lib/shutil.py')
-rw-r--r--Lib/shutil.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/shutil.py b/Lib/shutil.py
index c75ea4d..7d1a3d0 100644
--- a/Lib/shutil.py
+++ b/Lib/shutil.py
@@ -332,7 +332,7 @@ if hasattr(os, 'listxattr'):
os.setxattr(dst, name, value, follow_symlinks=follow_symlinks)
except OSError as e:
if e.errno not in (errno.EPERM, errno.ENOTSUP, errno.ENODATA,
- errno.EINVAL):
+ errno.EINVAL, errno.EACCES):
raise
else:
def _copyxattr(*args, **kwargs):