bpo-24564: shutil.copystat(): ignore EINVAL on os.setxattr() by yingw787 · Pull Request #13369 · python/cpython (original) (raw)
[First-time contribution]
Carbon copy of PR #8601, except using tuples instead of sets. New pull request needed because original repo fork no longer exists.
This pull request ignores errno.EINVAL (invalid argument) when copying over extended attributes, which may cause copy to fail when copying files from a filesystem that supports extended attributes to filesystem that does not support extended attributes.
This pull request may also address bpo-36850.