diff options
author | Ulrich Drepper <drepper@redhat.com> | 2008-10-30 16:55:44 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2008-10-30 16:55:44 +0000 |
commit | 332c4465b00f7445dc83f9052290209e68c1ab0d (patch) | |
tree | 9cc4aad4106fb9f3295ce7948891b3a084a262f5 /grp/initgroups.c | |
parent | 21b07d8ba586c231710a5197888e7130f996dd47 (diff) | |
download | glibc-332c4465b00f7445dc83f9052290209e68c1ab0d.tar glibc-332c4465b00f7445dc83f9052290209e68c1ab0d.tar.gz glibc-332c4465b00f7445dc83f9052290209e68c1ab0d.tar.bz2 glibc-332c4465b00f7445dc83f9052290209e68c1ab0d.zip |
* grp/initgroups.c (internal_getgrouplist): Don't prematurely
abort if there is no initgroups_dyn function.
Diffstat (limited to 'grp/initgroups.c')
-rw-r--r-- | grp/initgroups.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/grp/initgroups.c b/grp/initgroups.c index 2e489463df..cab63e52bf 100644 --- a/grp/initgroups.c +++ b/grp/initgroups.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1989,91,93,1996-2005,2006 Free Software Foundation, Inc. +/* Copyright (C) 1989,91,93,1996-2005,2006,2008 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -94,13 +94,8 @@ internal_getgrouplist (const char *user, gid_t group, long int *size, fct = __nss_lookup_function (nip, "initgroups_dyn"); if (fct == NULL) - { - status = compat_call (nip, user, group, &start, size, groupsp, - limit, &errno); - - if (nss_next_action (nip, NSS_STATUS_UNAVAIL) != NSS_ACTION_CONTINUE) - break; - } + status = compat_call (nip, user, group, &start, size, groupsp, + limit, &errno); else status = DL_CALL_FCT (fct, (user, group, &start, size, groupsp, limit, &errno)); |