Emulate ENOTDIR better

This commit is contained in:
Justine Tunney 2023-08-16 20:11:19 -07:00
parent b76b2be2d0
commit 8d1c81ac9f
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
35 changed files with 80 additions and 50 deletions

View file

@ -209,7 +209,7 @@ static int __zipos_open_impl(struct ZiposUri *name, int flags) {
}
ssize_t cf;
if ((cf = __zipos_find(zipos, name)) == -1) {
return enoent();
return -1;
}
if (flags & O_EXCL) {
return eexist();