mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
syscalls: open: fix create not being in relation to dirfd
This commit is contained in:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user