syscalls: umask

This commit is contained in:
Matheus
2022-10-12 19:04:21 -03:00
parent f084193f39
commit 36d63eb96f
7 changed files with 26 additions and 3 deletions
+1 -1
View File
@@ -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;