mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-30 05:58:22 +00:00
syscalls: umask
This commit is contained in:
@@ -19,7 +19,7 @@ syscallret syscall_mkdir(const char* pathname, mode_t mode){
|
||||
|
||||
strcpy(path, pathname);
|
||||
|
||||
retv.errno = vfs_mkdir(path[0] == '/' ? proc->root : proc->cwd, path, mode);
|
||||
retv.errno = vfs_mkdir(path[0] == '/' ? proc->root : proc->cwd, path, mode & ~proc->umask);
|
||||
|
||||
if(retv.errno == 0)
|
||||
retv.ret = 0;
|
||||
|
||||
Reference in New Issue
Block a user