Commit 03345ab
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 #48105.
Refs: #47098
Refs: #48105
Co-authored-by: Alberto Moretti <moretti919@gmail.com>
Signed-off-by: Kenny Yeo <kenny@yeoyou.net>1 parent fd983b7 commit 03345ab
1 file changed
+2
-0
lines changed| 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