Commit 3b8ab4a
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 3b8ab4a
1 file changed
+17
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
806 | 806 | | |
807 | 807 | | |
808 | 808 | | |
809 | | - | |
810 | | - | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
811 | 826 | | |
812 | 827 | | |
813 | 828 | | |
| |||
0 commit comments