diff options
-rw-r--r-- | Userland/Services/SystemServer/Service.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Services/SystemServer/Service.cpp b/Userland/Services/SystemServer/Service.cpp index eda136ce1f..bc3190c362 100644 --- a/Userland/Services/SystemServer/Service.cpp +++ b/Userland/Services/SystemServer/Service.cpp @@ -200,8 +200,8 @@ ErrorOr<void> Service::spawn(int socket_fd) if (m_account.has_value() && m_account.value().uid() != getuid()) { auto& account = m_account.value(); - if (account.login().is_error()) { - dbgln("Failed to drop privileges (GID={}, UID={})\n", account.gid(), account.uid()); + if (auto error_or_void = account.login(); error_or_void.is_error()) { + dbgln("Failed to drop privileges (GID={}, UID={}), due to {}\n", account.gid(), account.uid(), error_or_void.error()); exit(1); } TRY(Core::System::setenv("HOME"sv, account.home_directory(), true)); |