mirror of
https://github.com/darlinghq/darling.git
synced 2024-11-23 20:29:47 +00:00
Fail gracefull when NULL path is passed to open()
This commit is contained in:
parent
75d82d99d3
commit
a34b5f3267
@ -28,6 +28,8 @@ long sys_openat(int fd, const char* filename, int flags, unsigned int mode)
|
||||
long sys_openat_nocancel(int fd, const char* filename, int flags, unsigned int mode)
|
||||
{
|
||||
int ret, linux_flags;
|
||||
if (!filename)
|
||||
return -EFAULT;
|
||||
|
||||
linux_flags = oflags_bsd_to_linux(flags);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user