fix messed-up errno if remove fails for a non-EISDIR reason
[musl] / lib /
drwxr-xr-x   ..
-rw-r--r-- 0 empty