Skip to content

Commit afeff8e

Browse files
committed
deps: cherry-pick libuv/libuv@439a54b
Original commit message: unix: treat futimens() as best-effort in copyfile futimens() may fail with EPERM on CIFS/SMB shares that do not support setting timestamps. Since preserving timestamps during copyfile is best-effort, ignore the return value unconditionally. Refs: libuv/libuv#4396 Fixes: #56248
1 parent 9ff27fd commit afeff8e

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

  • deps/uv/src/unix

deps/uv/src/unix/fs.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1322,10 +1322,7 @@ static ssize_t uv__fs_copyfile(uv_fs_t* req) {
13221322
times[1] = src_statsbuf.st_mtim;
13231323
#endif
13241324

1325-
if (futimens(dstfd, times) == -1) {
1326-
err = UV__ERR(errno);
1327-
goto out;
1328-
}
1325+
(void) futimens(dstfd, times);
13291326

13301327
/*
13311328
* Change the ownership and permissions of the destination file to match the

0 commit comments

Comments
 (0)