mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 23:18:21 +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)){
|
if(ret == ENOENT && (flags & O_CREAT)){
|
||||||
ret = vfs_create(
|
ret = vfs_create(
|
||||||
*name == '/' ? proc->root : proc->cwd,
|
*name == '/' ? proc->root : target,
|
||||||
name, mode & ~proc->umask);
|
name, mode & ~proc->umask);
|
||||||
|
|
||||||
if(ret){
|
if(ret){
|
||||||
|
|||||||
Reference in New Issue
Block a user