access(2) should return -1 on error
This commit is contained in:
parent
1ff1175bce
commit
56d412fd31
@ -9,6 +9,7 @@ int access(const char *pathname, int mode) {
|
||||
int result = syscall_access((char *)pathname, mode);
|
||||
if (result < 0) {
|
||||
errno = ENOENT; /* XXX */
|
||||
return -1;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user