diff options
Diffstat (limited to 'Kernel/Syscalls/getuid.cpp')
-rw-r--r-- | Kernel/Syscalls/getuid.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Kernel/Syscalls/getuid.cpp b/Kernel/Syscalls/getuid.cpp index c2c753b9b7..f77c4f9c00 100644 --- a/Kernel/Syscalls/getuid.cpp +++ b/Kernel/Syscalls/getuid.cpp @@ -74,11 +74,11 @@ KResultOr<int> Process::sys$getgroups(ssize_t count, Userspace<gid_t*> user_gids if (count < 0) return EINVAL; if (!count) - return m_extra_gids.size(); - if (count != (int)m_extra_gids.size()) + return extra_gids().size(); + if (count != (int)extra_gids().size()) return EINVAL; - if (!copy_to_user(user_gids, m_extra_gids.data(), sizeof(gid_t) * count)) + if (!copy_to_user(user_gids, extra_gids().data(), sizeof(gid_t) * count)) return EFAULT; return 0; |