Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ValveSoftware/Proton.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xproton2
1 files changed, 1 insertions, 1 deletions
diff --git a/proton b/proton
index fe9c41fa..195898bb 100755
--- a/proton
+++ b/proton
@@ -223,7 +223,7 @@ def copyfile_reflink(srcname, dstname):
while bytes_to_copy > 0:
bytes_to_copy -= copy_file_range(src.fileno(), dst.fileno(), bytes_to_copy)
except OSError as e:
- if e.errno != errno.EXDEV and e.errno != errno.ENOSYS:
+ if e.errno not in (errno.EXDEV, errno.ENOSYS, errno.EINVAL):
raise e
if e.errno == errno.ENOSYS:
copyfile = shutil.copyfile