Commit b4b7d36
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: #211721 parent 9f9355d commit b4b7d36Copy full SHA for b4b7d36
File tree
Expand file treeCollapse file tree
9 files changed
+43
-27
lines changedOpen diff view settings
Filter options
- doc/api
- lib
- internal
- fs
- test/parallel
Expand file treeCollapse file tree
9 files changed
+43
-27
lines changedOpen diff view settings
Collapse file
+6Lines changed: 6 additions & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1089 | 1089 | |
1090 | 1090 | |
1091 | 1091 | |
| 1092 | + |
| 1093 | + |
| 1094 | + |
| 1095 | + |
| 1096 | + |
| 1097 | + |
1092 | 1098 | |
1093 | 1099 | |
1094 | 1100 | |
|
Collapse file
+9-9Lines changed: 9 additions & 9 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
77 | 77 | |
78 | 78 | |
79 | 79 | |
80 | | - |
| 80 | + |
81 | 81 | |
82 | 82 | |
83 | 83 | |
| ||
416 | 416 | |
417 | 417 | |
418 | 418 | |
419 | | - |
| 419 | + |
420 | 420 | |
421 | 421 | |
422 | 422 | |
| ||
434 | 434 | |
435 | 435 | |
436 | 436 | |
437 | | - |
| 437 | + |
438 | 438 | |
439 | 439 | |
440 | 440 | |
| ||
721 | 721 | |
722 | 722 | |
723 | 723 | |
724 | | - |
| 724 | + |
725 | 725 | |
726 | 726 | |
727 | 727 | |
| ||
732 | 732 | |
733 | 733 | |
734 | 734 | |
735 | | - |
| 735 | + |
736 | 736 | |
737 | 737 | |
738 | 738 | |
| ||
915 | 915 | |
916 | 916 | |
917 | 917 | |
918 | | - |
| 918 | + |
919 | 919 | |
920 | 920 | |
921 | 921 | |
| ||
925 | 925 | |
926 | 926 | |
927 | 927 | |
928 | | - |
| 928 | + |
929 | 929 | |
930 | 930 | |
931 | 931 | |
| ||
966 | 966 | |
967 | 967 | |
968 | 968 | |
969 | | - |
| 969 | + |
970 | 970 | |
971 | 971 | |
972 | 972 | |
| ||
977 | 977 | |
978 | 978 | |
979 | 979 | |
980 | | - |
| 980 | + |
981 | 981 | |
982 | 982 | |
983 | 983 | |
|
Collapse file
lib/internal/fs/promises.js
Copy file name to clipboardExpand all lines: lib/internal/fs/promises.js+5-5Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
31 | 31 | |
32 | 32 | |
33 | 33 | |
34 | | - |
35 | 34 | |
| 35 | + |
36 | 36 | |
37 | 37 | |
38 | 38 | |
| ||
191 | 191 | |
192 | 192 | |
193 | 193 | |
194 | | - |
| 194 | + |
195 | 195 | |
196 | 196 | |
197 | 197 | |
| ||
286 | 286 | |
287 | 287 | |
288 | 288 | |
289 | | - |
| 289 | + |
290 | 290 | |
291 | 291 | |
292 | 292 | |
| ||
358 | 358 | |
359 | 359 | |
360 | 360 | |
361 | | - |
| 361 | + |
362 | 362 | |
363 | 363 | |
364 | 364 | |
365 | 365 | |
366 | 366 | |
367 | 367 | |
368 | | - |
| 368 | + |
369 | 369 | |
370 | 370 | |
371 | 371 | |
|
Collapse file
+17-6Lines changed: 17 additions & 6 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
16 | 16 | |
17 | 17 | |
18 | 18 | |
19 | | - |
20 | | - |
21 | | - |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
22 | 33 | |
23 | | - |
| 34 | + |
24 | 35 | |
25 | 36 | |
26 | 37 | |
| ||
37 | 48 | |
38 | 49 | |
39 | 50 | |
40 | | - |
| 51 | + |
41 | 52 | |
42 | 53 | |
43 | 54 | |
| ||
106 | 117 | |
107 | 118 | |
108 | 119 | |
109 | | - |
| 120 | + |
110 | 121 | |
111 | 122 | |
112 | 123 | |
|
Collapse file
test/parallel/test-fs-chmod-mask.js
Copy file name to clipboardExpand all lines: test/parallel/test-fs-chmod-mask.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | | - |
| 3 | + |
4 | 4 | |
5 | 5 | |
6 | 6 | |
|
Collapse file
test/parallel/test-fs-mkdir-mode-mask.js
Copy file name to clipboardExpand all lines: test/parallel/test-fs-mkdir-mode-mask.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | | - |
| 3 | + |
4 | 4 | |
5 | 5 | |
6 | 6 | |
|
Collapse file
test/parallel/test-fs-open-mode-mask.js
Copy file name to clipboardExpand all lines: test/parallel/test-fs-open-mode-mask.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | | - |
| 3 | + |
4 | 4 | |
5 | 5 | |
6 | 6 | |
|
Collapse file
test/parallel/test-fs-promises.js
Copy file name to clipboardExpand all lines: test/parallel/test-fs-promises.js+2-3Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
107 | 107 | |
108 | 108 | |
109 | 109 | |
110 | | - |
111 | | - |
112 | | - |
| 110 | + |
| 111 | + |
113 | 112 | |
114 | 113 | |
115 | 114 | |
|
Collapse file
test/parallel/test-process-umask-mask.js
Copy file name to clipboardExpand all lines: test/parallel/test-process-umask-mask.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | | - |
| 3 | + |
4 | 4 | |
5 | 5 | |
6 | 6 | |
|
0 commit comments