mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-28 15:34:33 +00:00
Add check for file existence in linux_access function
This commit is contained in:
parent
717a98810a
commit
a5ca3b3995
@ -567,6 +567,11 @@ static int linux_access(SysFrm *, const char *pathname, int mode)
|
|||||||
if (pPathname == nullptr)
|
if (pPathname == nullptr)
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
|
|
||||||
|
debug("access(%s, %d)", (char *)pPathname, mode);
|
||||||
|
|
||||||
|
if (!fs->PathExists(pPathname, pcb->CurrentWorkingDirectory))
|
||||||
|
return -ENOENT;
|
||||||
|
|
||||||
stub;
|
stub;
|
||||||
fixme("access(%s, %d)", (char *)pPathname, mode);
|
fixme("access(%s, %d)", (char *)pPathname, mode);
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user