Permalink
Please
sign in to comment.
Browse files
lib: unmask mode_t values with 0o777
This commit allows permission bits higher than 0o777 to go through the API (e.g. `S_ISVTX`=`0o1000`, `S_ISGID`=`0o2000`, `S_ISUID`=`0o4000`). Also documents that these bits are not exposed through `fs.constants` and their behaviors are platform-specific, so the users need to use them on their own risk. PR-URL: #20975 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com> Backport-PR-URL: #21172
- Loading branch information...
Showing
with
43 additions
and 27 deletions.
- +6 −0 doc/api/fs.md
- +9 −9 lib/fs.js
- +5 −5 lib/internal/fs/promises.js
- +17 −6 lib/internal/validators.js
- +1 −1 test/parallel/test-fs-chmod-mask.js
- +1 −1 test/parallel/test-fs-mkdir-mode-mask.js
- +1 −1 test/parallel/test-fs-open-mode-mask.js
- +2 −3 test/parallel/test-fs-promises.js
- +1 −1 test/parallel/test-process-umask-mask.js
0 comments on commit
b4b7d36