From d02ade6adf7f04275a0351a12ff3b6573b894616 Mon Sep 17 00:00:00 2001 From: Sho Miyamoto Date: Thu, 15 Feb 2018 01:02:12 +0900 Subject: [PATCH] fs: fix typo in promises.lchmod & lchown --- lib/fs.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/fs.js b/lib/fs.js index 6129e3c3ef35a0..71eace0aef5b0a 100644 --- a/lib/fs.js +++ b/lib/fs.js @@ -2896,7 +2896,7 @@ const promises = { if (constants.O_SYMLINK !== undefined) { const fd = await promises.open(path, constants.O_WRONLY | constants.O_SYMLINK); - return promises.fschmod(fd, mode).finally(fd.close.bind(fd)); + return promises.fchmod(fd, mode).finally(fd.close.bind(fd)); } throw new errors.Error('ERR_METHOD_NOT_IMPLEMENTED'); }, @@ -2905,7 +2905,7 @@ const promises = { if (constants.O_SYMLINK !== undefined) { const fd = await promises.open(path, constants.O_WRONLY | constants.O_SYMLINK); - return promises.fschmod(fd, uid, gid).finally(fd.close.bind(fd)); + return promises.fchown(fd, uid, gid).finally(fd.close.bind(fd)); } throw new errors.Error('ERR_METHOD_NOT_IMPLEMENTED'); },