Skip to content

Commit 28dc56d

Browse files
Sho Miyamotovsemozhetbyt
authored andcommitted
fs: fix typo in promises.lchmod & lchown
PR-URL: #18783 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent 138bdf6 commit 28dc56d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/fs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2896,7 +2896,7 @@ const promises = {
28962896
if (constants.O_SYMLINK !== undefined) {
28972897
const fd = await promises.open(path,
28982898
constants.O_WRONLY | constants.O_SYMLINK);
2899-
return promises.fschmod(fd, mode).finally(fd.close.bind(fd));
2899+
return promises.fchmod(fd, mode).finally(fd.close.bind(fd));
29002900
}
29012901
throw new errors.Error('ERR_METHOD_NOT_IMPLEMENTED');
29022902
},
@@ -2905,7 +2905,7 @@ const promises = {
29052905
if (constants.O_SYMLINK !== undefined) {
29062906
const fd = await promises.open(path,
29072907
constants.O_WRONLY | constants.O_SYMLINK);
2908-
return promises.fschmod(fd, uid, gid).finally(fd.close.bind(fd));
2908+
return promises.fchown(fd, uid, gid).finally(fd.close.bind(fd));
29092909
}
29102910
throw new errors.Error('ERR_METHOD_NOT_IMPLEMENTED');
29112911
},

0 commit comments

Comments
 (0)