diff options
author | Santiago Gimeno <santiago.gimeno@gmail.com> | 2019-05-17 14:25:43 +0200 |
---|---|---|
committer | Santiago Gimeno <santiago.gimeno@gmail.com> | 2019-06-23 14:37:11 +0200 |
commit | 0b29acb0cab7baeb6af77aa9ae259b4c6ebf000a (patch) | |
tree | ea49cf0185983dbb4a078dbcf927225fa1021e41 /docs/src | |
parent | 5fd480678c230b9bf57298d4a9d761c5d2dbd0c7 (diff) | |
download | libuv-0b29acb0cab7baeb6af77aa9ae259b4c6ebf000a.tar.gz libuv-0b29acb0cab7baeb6af77aa9ae259b4c6ebf000a.zip |
fs: fix uv_fs_copyfile if same src and dst
Specifically return success.
It fixes a tight loop on unices as `sendfile()` was returning 0 and also
makes the function behave the same both on `unix` and `windows`.
It partially implements: https://github.com/libuv/libuv/issues/2237
PR-URL: https://github.com/libuv/libuv/pull/2298
Refs: https://github.com/nodejs/node/issues/27746
Reviewed-By: Jameson Nash <vtjnash@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'docs/src')
0 files changed, 0 insertions, 0 deletions