diff options
Diffstat (limited to 'lib/mgetgroups.c')
-rw-r--r-- | lib/mgetgroups.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/lib/mgetgroups.c b/lib/mgetgroups.c index 5c79915bcc..e0aa250ca4 100644 --- a/lib/mgetgroups.c +++ b/lib/mgetgroups.c @@ -31,7 +31,7 @@ #endif #include "getugroups.h" -#include "xalloc.h" +#include "xalloc-oversized.h" static gid_t * realloc_groupbuf (gid_t *g, size_t num) @@ -193,14 +193,3 @@ mgetgroups (char const *username, gid_t gid, gid_t **groups) return ng; } - -/* Like mgetgroups, but call xalloc_die on allocation failure. */ - -int -xgetgroups (char const *username, gid_t gid, gid_t **groups) -{ - int result = mgetgroups (username, gid, groups); - if (result == -1 && errno == ENOMEM) - xalloc_die (); - return result; -} |