Skip to content

Commit

Permalink
[BZ #3273]
Browse files Browse the repository at this point in the history
2006-09-29  Ulrich Drepper  <drepper@redhat.com>
	[BZ #3273]
	* nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
	found no group members.
	Patch by Petr Baudis.

2006-09-29  Jakub Jelinek  <jakub@redhat.com>

	* elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
	assert bootstrap_map.l_tls_modid is zero.
	(_dl_start): Initialize bootstrap_map.l_tls_modid to 0
	if USE___THREAD.
  • Loading branch information
Ulrich Drepper committed Sep 29, 2006
1 parent 1c31aa7 commit 154619b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
14 changes: 14 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
2006-09-29 Ulrich Drepper <drepper@redhat.com>

[BZ #3273]
* nscd/nscd_initgroups.c (__nscd_getgrouplist): It is OK to have
found no group members.
Patch by Petr Baudis.

2006-09-29 Jakub Jelinek <jakub@redhat.com>

* elf/rtld.c (_dl_start_final): If not USE___THREAD, don't
assert bootstrap_map.l_tls_modid is zero.
(_dl_start): Initialize bootstrap_map.l_tls_modid to 0
if USE___THREAD.

2006-09-27 Ulrich Drepper <drepper@redhat.com>

* libio/stdio.h: Move open_wmemstream prototype to ...
Expand Down
4 changes: 3 additions & 1 deletion elf/rtld.c
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,6 @@ _dl_start_final (void *arg, struct dl_start_final_info *info)
GL(dl_rtld_map).l_tls_offset = info->l.l_tls_offset;
GL(dl_rtld_map).l_tls_modid = 1;
# else
assert (info->l.l_tls_modid == 0);
# if NO_TLS_OFFSET != 0
GL(dl_rtld_map).l_tls_offset = NO_TLS_OFFSET;
# endif
Expand Down Expand Up @@ -389,6 +388,9 @@ _dl_start (void *arg)
++cnt)
bootstrap_map.l_info[cnt] = 0;
# endif
# if USE___THREAD
bootstrap_map.l_tls_modid = 0;
# endif
#endif

/* Figure out the run-time load address of the dynamic linker itself. */
Expand Down
2 changes: 1 addition & 1 deletion nscd/nscd_initgroups.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ __nscd_getgrouplist (const char *user, gid_t group, long int *size,
doesn't use memcpy but instead copies each array element one
by one. */
assert (sizeof (int32_t) == sizeof (gid_t));
assert (initgr_resp->ngrps > 0);
assert (initgr_resp->ngrps >= 0);

/* Make sure we have enough room. We always count GROUP in even
though we might not end up adding it. */
Expand Down

0 comments on commit 154619b

Please sign in to comment.