This commit is contained in:
skooch 2026-03-31 09:18:44 +03:00 committed by GitHub
commit 38af05eba9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1345,7 +1345,17 @@ static int uv__fs_copyfile(uv_fs_t* req) {
if (futimens(dstfd, times) == -1) {
err = UV__ERR(errno);
#ifdef __linux__
/* futimens() on CIFS/SMB shares may fail with EPERM. Since preserving
* timestamps is best-effort, detect that condition and squelch the error.
*/
if (err == UV_EPERM && uv__is_cifs_or_smb(dstfd))
err = 0;
else
goto out;
#else /* !__linux__ */
goto out;
#endif /* !__linux__ */
}
/*