diff --git a/src/core.asm b/src/core.asm index bab4939..0fe6ba0 100644 --- a/src/core.asm +++ b/src/core.asm @@ -199,10 +199,12 @@ umask_set: ; rdi* syscall arg ; rdx* Stores umask for restoring+returning umask umask_get: + mov rax, NR_umask xor rdi, rdi - call umask_set + syscall mov rdx, rax mov rdi, rax - call umask_set + mov rax, NR_umask + syscall mov rax, rdx ret