You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fs.writeFile(Sync) has a bug regarding the mode option:
If the file is not existing, it is sometimes created with a different mode (see test case, I didn't try all possible combinations). (not-a-bug, umask at work)
If the file is already existing, its mode is kept unchanged.
Our tests are not catching this because we use 755 and it is one of the working cases.
I suspect a bug in libuv's open method. The mode seems to be correctly passed from our code.
Original issue: nodejs/node-v0.x-archive#25756
fs.writeFile(Sync)
has a bug regarding themode
option:If the file is not existing, it is sometimes created with a different mode (see test case, I didn't try all possible combinations).(not-a-bug, umask at work)Our tests are not catching this because we use755
and it is one of the working cases.I suspect a bug in libuv'sopen
method. The mode seems to be correctly passed from our code.Test case (tested on OSX 10.10):
Output :
/cc @saghul ?
The text was updated successfully, but these errors were encountered: