Commit 92395e7cfe0 for nodejs

commit 92395e7cfe0bd975073351af1b19ac4c22bdadda
Author: Antoine du Hamel <duhamelantoine1995@gmail.com>
Date:   Sun Sep 20 13:20:30 2026 +0200

    test: avoid call to `chmodSync` in `test-fs-cp-async-file-modes`

    Signed-off-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
    PR-URL: https://github.com/nodejs/node/pull/66104
    Fixes: https://github.com/NixOS/nixpkgs/issues/564449
    Reviewed-By: Filip Skokan <panva.ip@gmail.com>
    Reviewed-By: James M Snell <jasnell@gmail.com>
    Reviewed-By: Luigi Pinca <luigipinca@gmail.com>

diff --git a/test/parallel/test-fs-cp-async-file-modes.mjs b/test/parallel/test-fs-cp-async-file-modes.mjs
index 358f6c339b7..8aeaaceac4d 100644
--- a/test/parallel/test-fs-cp-async-file-modes.mjs
+++ b/test/parallel/test-fs-cp-async-file-modes.mjs
@@ -3,7 +3,7 @@
 import { isWindows, skip } from '../common/index.mjs';
 import { nextdir } from '../common/fs.js';
 import assert from 'node:assert';
-import { chmodSync, cpSync, mkdirSync, statSync, writeFileSync, promises } from 'node:fs';
+import { cpSync, mkdirSync, statSync, writeFileSync, promises } from 'node:fs';
 import { join } from 'node:path';
 import tmpdir from '../common/tmpdir.js';

@@ -15,8 +15,7 @@ const modes = { suid: 0o4755, sgid: 0o2755, sticky: 0o1755, private: 0o600 };
 const src = nextdir();
 mkdirSync(src);
 for (const [name, mode] of Object.entries(modes)) {
-  writeFileSync(join(src, name), 'x');
-  chmodSync(join(src, name), mode);
+  writeFileSync(join(src, name), 'x', { mode });
 }
 const modesIn = (dir) => Object.fromEntries(
   Object.keys(modes).map((name) => [name, statSync(join(dir, name)).mode & 0o7777]));