From 28dc56dc716681162fcaf07bc11ac657a7df471e 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 PR-URL: https://github.com/nodejs/node/pull/18783 Reviewed-By: James M Snell Reviewed-By: Vse Mozhet Byt Reviewed-By: Luigi Pinca Reviewed-By: Ruben Bridgewater --- lib/fs.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/fs.js b/lib/fs.js index 6129e3c3ef3..71eace0aef5 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'); },