syscalls: open: fix create not being in relation to dirfd

This commit is contained in:
Matheus
2022-10-26 21:44:09 -03:00
parent 1d28e68aa2
commit d64dc8f5b6
+1 -1
View File
@@ -72,7 +72,7 @@ syscallret syscall_openat(int dirfd, const char* pathname, int flags, mode_t mod
if(ret == ENOENT && (flags & O_CREAT)){
ret = vfs_create(
*name == '/' ? proc->root : proc->cwd,
*name == '/' ? proc->root : target,
name, mode & ~proc->umask);
if(ret){