From 01dfe5961c09964ab09999e28fa5eef712a58cc2 Mon Sep 17 00:00:00 2001 From: skooch Date: Sat, 25 Apr 2026 18:14:31 +1000 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 PR-URL: https://github.com/nodejs/node/pull/62881 Refs: https://github.com/libuv/libuv/pull/5053 Refs: https://github.com/libuv/libuv/pull/4396 Reviewed-By: Luigi Pinca Reviewed-By: Santiago Gimeno --- 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 fc0fe0a2691..a26f2dc7fa4 100644 --- a/deps/uv/src/unix/fs.c +++ b/deps/uv/src/unix/fs.c @@ -1324,10 +1324,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