diff options
author | Bruno Passeri <Varstahl@users.noreply.github.com> | 2023-03-12 12:05:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-12 12:05:45 +0100 |
commit | dfb206c8b06d9581dbbc52e2013dc18681694683 (patch) | |
tree | 401f7a2fca5f7e21aa45c631dc0ef5893907901d /test/test-tcp-try-write-error.c | |
parent | 9581e3df0cb3529372d731710d70c94e0c0fe8e7 (diff) | |
download | libuv-dfb206c8b06d9581dbbc52e2013dc18681694683.tar.gz libuv-dfb206c8b06d9581dbbc52e2013dc18681694683.zip |
linux: fix ceph copy error truncating readonly files (#3920)
Trying to copy a read-only file onto a ceph-fuse filesystem fails,
returning an `EACCES` error. This happens when the destination
doesn't exist yet, and a new file is created.
By checking that the error matches, and that the destination file
is empty, we can fix this issue while waiting for a proper Ceph
fix to be upstreamed.
Fixes: https://github.com/libuv/libuv/issues/3919
Refs: https://github.com/nodejs/node/issues/37284
Refs: https://github.com/libuv/libuv/issues/3117
Refs: https://github.com/libuv/libuv/issues/3322
Diffstat (limited to 'test/test-tcp-try-write-error.c')
0 files changed, 0 insertions, 0 deletions