Commit 38076da
src: handle EROFS in mkdir recursive
Add UV_EROFS to the list of errors that should be returned
immediately in MKDirpSync and MKDirpAsync, preventing it from
being incorrectly converted to ENOENT when mkdir is called with
the recursive option on a read-only filesystem.
Based on the original fix by Alberto Moretti (@hiimjako) in nodejs#48105.
Refs: nodejs#47098
Refs: nodejs#48105
Co-authored-by: Alberto Moretti <[email protected]>
Signed-off-by: Kenny Yeo <[email protected]>1 parent 70103f0 commit 38076da
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1874 | 1874 | | |
1875 | 1875 | | |
1876 | 1876 | | |
| 1877 | + | |
1877 | 1878 | | |
1878 | 1879 | | |
1879 | 1880 | | |
| |||
1954 | 1955 | | |
1955 | 1956 | | |
1956 | 1957 | | |
| 1958 | + | |
1957 | 1959 | | |
1958 | 1960 | | |
1959 | 1961 | | |
| |||
0 commit comments