diff --git a/Userland/Libraries/LibCore/Account.cpp b/Userland/Libraries/LibCore/Account.cpp index 7ed8f3b045df13..a0e72f2de46be1 100644 --- a/Userland/Libraries/LibCore/Account.cpp +++ b/Userland/Libraries/LibCore/Account.cpp @@ -43,6 +43,7 @@ static Vector get_extra_gids(const passwd& pwd) { StringView username { pwd.pw_name }; Vector extra_gids; + setgrent(); for (auto* group = getgrent(); group; group = getgrent()) { if (group->gr_gid == pwd.pw_gid) continue;