mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-06-30 18:09:18 +00:00
Add check for file existence in linux_access function
This commit is contained in:
@ -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;
|
||||||
|
Reference in New Issue
Block a user