summaryrefslogtreecommitdiff
path: root/src/group-list.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/group-list.c')
-rw-r--r--src/group-list.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/group-list.c b/src/group-list.c
index 1fadd0c57..a4b1f6dc6 100644
--- a/src/group-list.c
+++ b/src/group-list.c
@@ -58,9 +58,9 @@ print_group_list (const char *username,
gid_t *groups;
int i;
- int n_groups = mgetgroups (username, (pwd ? pwd->pw_gid : (gid_t) -1),
+ int n_groups = xgetgroups (username, (pwd ? pwd->pw_gid : (gid_t) -1),
&groups);
- if (n_groups < 0 && errno != ENOSYS)
+ if (n_groups < 0)
{
if (username)
{