Merge 2681bf09c5 into 44125af62a
This commit is contained in:
commit
38af05eba9
@ -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__ */
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Loading…
Reference in New Issue
Block a user