aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--paludis/repositories/accounts/installed_accounts_id.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/paludis/repositories/accounts/installed_accounts_id.cc b/paludis/repositories/accounts/installed_accounts_id.cc
index c69aa2889..57f0b9066 100644
--- a/paludis/repositories/accounts/installed_accounts_id.cc
+++ b/paludis/repositories/accounts/installed_accounts_id.cc
@@ -143,7 +143,7 @@ InstalledAccountsID::need_keys_added() const
struct group grp;
struct group * grp_result;
- if (0 == getgrgid_r(pwd.pw_gid, &grp, &grp_buf[0], grp_buf_sz, &grp_result))
+ if (0 == getgrgid_r(pwd.pw_gid, &grp, &grp_buf[0], grp_buf_sz, &grp_result) && 0 != grp_result)
{
/* really we should only do this if the group in question is managed by accounts. users
* might have accounts installed by hand with a group that's unmanaged. */