diff options
Diffstat (limited to 'Kernel/Syscalls/umask.cpp')
-rw-r--r-- | Kernel/Syscalls/umask.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Syscalls/umask.cpp b/Kernel/Syscalls/umask.cpp index 16819f0215..e019fb0344 100644 --- a/Kernel/Syscalls/umask.cpp +++ b/Kernel/Syscalls/umask.cpp @@ -12,9 +12,9 @@ KResultOr<FlatPtr> Process::sys$umask(mode_t mask) { VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this) REQUIRE_PROMISE(stdio); - auto old_mask = m_umask; + auto old_mask = m_protected_values.umask; ProtectedDataMutationScope scope { *this }; - m_umask = mask & 0777; + m_protected_values.umask = mask & 0777; return old_mask; } |