rust/library/std
bors 03e864fd86 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.
2021-03-11 21:41:01 +00:00
..
benches
src Auto merge of #82417 - the8472:fix-copy_file_range-append, r=m-ou-se 2021-03-11 21:41:01 +00:00
tests
build.rs
Cargo.toml Bump libc dependency of std to 0.2.88. 2021-03-05 20:54:14 +01:00