diff options
author | Ludovic Courtès <ludo@gnu.org> | 2014-05-25 01:06:50 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2014-05-30 18:02:48 +0200 |
commit | a5ca1de1eb575294dbc865a2c4ff643efc117ef4 (patch) | |
tree | aa88756d803a4b71fce5b851ba032f80d29086d1 /libshouldbeinlibc/idvec-impgids.c | |
parent | ea16c110d8ca67a5460d45600a399078a101ef4f (diff) |
build: Remove checks for 'getgrouplist' and 'uselocale'.
GNU libc has had them for a long time.
* configure.ac: Remove checks for 'getgrouplist' and 'uselocale'.
* libshouldbeinlibc/idvec-impgids.c (_merge_implied_gids): Remove #ifdef
HAVE_GETGROUPLIST and remove #else arm.
* libthreads/cthreads.c: Remove #ifdef HAVE_USELOCALE, keeping its
bodies.
Diffstat (limited to 'libshouldbeinlibc/idvec-impgids.c')
-rw-r--r-- | libshouldbeinlibc/idvec-impgids.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/libshouldbeinlibc/idvec-impgids.c b/libshouldbeinlibc/idvec-impgids.c index 74d3cc12..d89f4873 100644 --- a/libshouldbeinlibc/idvec-impgids.c +++ b/libshouldbeinlibc/idvec-impgids.c @@ -1,6 +1,6 @@ /* Add gids implied by a user - Copyright (C) 1997, 2001 Free Software Foundation, Inc. + Copyright (C) 1997, 2001, 2014 Free Software Foundation, Inc. Written by Miles Bader <miles@gnu.ai.mit.edu> @@ -56,7 +56,6 @@ _merge_implied_gids (struct idvec *implied_gids, uid_t uid) else { struct idvec *cache = make_idvec (); -#ifdef HAVE_GETGROUPLIST gid_t _gids[NUM_STATIC_GIDS], *gids = _gids; int maxgids = NUM_STATIC_GIDS; int ngids = getgrouplist (pw->pw_name, pw->pw_gid, gids, &maxgids); @@ -79,17 +78,6 @@ _merge_implied_gids (struct idvec *implied_gids, uid_t uid) if (gids != _gids) free (gids); } -#else -#warning "getgrouplist() not available; supplementary group IDs unsupported." - if (! cache) - err = ENOMEM; - else - { - err = idvec_add_new (cache, pw->pw_gid); - if (err) - idvec_free (cache); - } -#endif if (! err) { |