diff options
| author | bors <bors@rust-lang.org> | 2021-03-11 21:41:01 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-03-11 21:41:01 +0000 |
| commit | 03e864fd86b8e346a2ea75235ce2b924ab453fa1 (patch) | |
| tree | 305a868ef4baa8319f183e8b2e1cd760f4769c98 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 4a8b6f708c38342a6c74aa00cf4323774c7381a6 (diff) | |
| parent | 81602fb6706654b868dd74ee88f680c57d4311cb (diff) | |
| download | rust-03e864fd86b8e346a2ea75235ce2b924ab453fa1.tar.gz rust-03e864fd86b8e346a2ea75235ce2b924ab453fa1.zip | |
Auto merge of #82417 - the8472:fix-copy_file_range-append, r=m-ou-se
Fix io::copy specialization using copy_file_range when writer was opened with O_APPEND fixes #82410 While `sendfile()` returns `EINVAL` when the output was opened with O_APPEND, `copy_file_range()` does not and returns `EBADF` instead, which – unlike other `EBADF` causes – is not fatal for this operation since a regular `write()` will likely succeed. We now treat `EBADF` as a non-fatal error for `copy_file_range` and fall back to a read-write copy as we already did for several other errors.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
