Skip to content

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.

Refs: https://github.com/nodejs/node/pull/20636#issuecomment-389818774

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • documentation is changed or added
  • commit message follows commit guidelines

Merge request reports

Loading