From afeff8ec264d4650e0a0ac40191205e644f525fc Mon Sep 17 00:00:00 2001 From: skooch Date: Wed, 11 Mar 2026 14:45:28 +1100 Subject: [PATCH] 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: https://github.com/libuv/libuv/pull/4396 Fixes: https://github.com/nodejs/node/issues/56248 --- deps/uv/src/unix/fs.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/deps/uv/src/unix/fs.c b/deps/uv/src/unix/fs.c index 717f3fab36939e..1682817b456b67 100644 --- a/deps/uv/src/unix/fs.c +++ b/deps/uv/src/unix/fs.c @@ -1322,10 +1322,7 @@ static ssize_t uv__fs_copyfile(uv_fs_t* req) { times[1] = src_statsbuf.st_mtim; #endif - if (futimens(dstfd, times) == -1) { - err = UV__ERR(errno); - goto out; - } + (void) futimens(dstfd, times); /* * Change the ownership and permissions of the destination file to match the