fs: fix typo in promises.lchmod & lchown
PR-URL: https://github.com/nodejs/node/pull/18783 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
parent
138bdf6114
commit
28dc56dc71
@ -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');
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user