diff --git a/lib/internal/fs/promises.js b/lib/internal/fs/promises.js index 3afd1a84985781..eb913adcbf975b 100644 --- a/lib/internal/fs/promises.js +++ b/lib/internal/fs/promises.js @@ -388,7 +388,7 @@ async function lchown(path, uid, gid) { if (O_SYMLINK !== undefined) { const fd = await open(path, O_WRONLY | O_SYMLINK); - return fchmod(fd, uid, gid).finally(fd.close.bind(fd)); + return fchown(fd, uid, gid).finally(fd.close.bind(fd)); } throw new ERR_METHOD_NOT_IMPLEMENTED(); }