diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2020-01-05 06:11:55 +0100 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2020-01-07 23:49:45 -0500 |
commit | a1af6685b7700e4521a1861e57afc9c8fe99aa0a (patch) | |
tree | b5757b764347c7008fe03c28a57a7e5fbd3b10ef /docs/src/sphinx-plugins/manpage.py | |
parent | 2b79df645657b18b6f584225823b60fe32e6eb9a (diff) | |
download | libuv-a1af6685b7700e4521a1861e57afc9c8fe99aa0a.tar.gz libuv-a1af6685b7700e4521a1861e57afc9c8fe99aa0a.zip |
unix: squelch fchmod() EPERM on CIFS share
uv_fs_copyfile() calls fchmod() to change the target file's permissions
to the source file's permissions but that operation errors with EPERM on
CIFS shares unless they are mounted with the "noperm" option.
Since UNIX-style permissions don't make sense for CIFS anyway, let's
handle the error in libuv by recognizing that it's a CIFS share and
continuing when that is the case.
The same logic probably applies to (a subset of) FUSE file systems but
those haven't been whitelisted yet.
Fixes: https://github.com/libuv/libuv/issues/2596
Refs: https://github.com/nodejs/node/issues/31170
PR-URL: https://github.com/libuv/libuv/pull/2597
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
Diffstat (limited to 'docs/src/sphinx-plugins/manpage.py')
0 files changed, 0 insertions, 0 deletions