Commit d3f4a32
committed
wasip3 filesystem unlink: Homogenize error returns
When attempting to unlink a directory, POSIX specifies the result should
be EPERM, but only MacOS implements that behavior. Paper over the
differences. Also turn EACCESS into EPERM, to paper over Windows
differences.
Related to WebAssembly/WASI#852 and
WebAssembly/wasi-testsuite#137.
POSIX 2008 reference: https://pubs.opengroup.org/onlinepubs/9699919799/functions/unlink.html1 parent 87ed3b6 commit d3f4a32
1 file changed
+17
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1131 | 1131 | | |
1132 | 1132 | | |
1133 | 1133 | | |
1134 | | - | |
1135 | | - | |
1136 | | - | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
1137 | 1151 | | |
1138 | 1152 | | |
1139 | 1153 | | |
| |||
0 commit comments