summaryrefslogtreecommitdiff
path: root/hesiod
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2013-05-23 23:37:23 +0200
committerThomas Schwinge <thomas@codesourcery.com>2013-05-23 23:37:23 +0200
commitcbb9d63bde7e060a2ae9cdf17a913a6e3f44446f (patch)
treec57fe05be1ab39888bdcd09c56f67c10662bee99 /hesiod
parentf5ac626c4ff62b26b99c3a1eb7bca4fccfbe4006 (diff)
parentb934acf0e93c5a220551ed6e686bb9d45a24a8cc (diff)
Merge commit 'refs/top-bases/t/tls' into t/tls
Diffstat (limited to 'hesiod')
-rw-r--r--hesiod/Depend2
-rw-r--r--hesiod/nss_hesiod/hesiod-grp.c27
2 files changed, 2 insertions, 27 deletions
diff --git a/hesiod/Depend b/hesiod/Depend
new file mode 100644
index 0000000000..0554b47da6
--- /dev/null
+++ b/hesiod/Depend
@@ -0,0 +1,2 @@
+nss
+resolv
diff --git a/hesiod/nss_hesiod/hesiod-grp.c b/hesiod/nss_hesiod/hesiod-grp.c
index c2ae16612d..b11952fadf 100644
--- a/hesiod/nss_hesiod/hesiod-grp.c
+++ b/hesiod/nss_hesiod/hesiod-grp.c
@@ -191,33 +191,6 @@ _nss_hesiod_initgroups_dyn (const char *user, gid_t group, long int *start,
return errno == ENOENT ? NSS_STATUS_NOTFOUND : NSS_STATUS_UNAVAIL;
}
- if (!internal_gid_in_list (groups, group, *start))
- {
- if (__builtin_expect (*start == *size, 0))
- {
- /* Need a bigger buffer. */
- gid_t *newgroups;
- long int newsize;
-
- if (limit > 0 && *size == limit)
- /* We reached the maximum. */
- goto done;
-
- if (limit <= 0)
- newsize = 2 * *size;
- else
- newsize = MIN (limit, 2 * *size);
-
- newgroups = realloc (groups, newsize * sizeof (*groups));
- if (newgroups == NULL)
- goto done;
- *groupsp = groups = newgroups;
- *size = newsize;
- }
-
- groups[(*start)++] = group;
- }
-
save_errno = errno;
p = *list;