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:
authorEsme Povirk <esme@codeweavers.com>2022-04-18 19:14:03 +0300
committerEsme Povirk <esme@codeweavers.com>2022-04-18 19:14:03 +0300
commitbd09a4b7c450a2faa1a1f573a6ee49d3e15b7b21 (patch)
tree81826c20bd286e9937eeffc0631014bfd81f7d76
parent4490ffd2e31363d8cb42d2a00c0a14d332771eff (diff)
Accept EINVAL result from copy_file_range.
Apparently, ecryptfs can give this result for regular files. For #5769.
-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