mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-05 21:00:05 +00:00
Update.
* nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the service hasn't been used [PR libc/4744].
This commit is contained in:
parent
125183201f
commit
226e9fda25
@ -1,5 +1,8 @@
|
||||
2002-11-04 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* nss/getXXent_r.c (ENDFUNC_NAME): Don't do anything if the
|
||||
service hasn't been used [PR libc/4744].
|
||||
|
||||
* include/features.h: Use __STDC_VERSION__ not __STDC_VERSION.
|
||||
Reported by Miloslav Trmac <mitr@volny.cz> [PR libc/4766].
|
||||
|
||||
|
@ -1,5 +1,8 @@
|
||||
2002-11-04 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* sysdeps/i386/Makefile: Compile pthread.c and sighandler.c with
|
||||
-fno-omit-frame-pointer. Patch by Andreas Steinmetz <ast@domdv.de>.
|
||||
|
||||
* sysdeps/i386/useldt.h [PIC] (USETLS_LOAD_EBX): Use correct input
|
||||
register number.
|
||||
(DO_SET_THREAD_AREA): Mark asm output specifiers correctly.
|
||||
|
@ -137,12 +137,16 @@ ENDFUNC_NAME (void)
|
||||
{
|
||||
int save;
|
||||
|
||||
__libc_lock_lock (lock);
|
||||
__nss_endent (ENDFUNC_NAME_STRING, DB_LOOKUP_FCT, &nip, &startp,
|
||||
&last_nip, NEED__RES);
|
||||
save = errno;
|
||||
__libc_lock_unlock (lock);
|
||||
__set_errno (save);
|
||||
/* If the service has not been used before do not do anything. */
|
||||
if (startp != NULL)
|
||||
{
|
||||
__libc_lock_lock (lock);
|
||||
__nss_endent (ENDFUNC_NAME_STRING, DB_LOOKUP_FCT, &nip, &startp,
|
||||
&last_nip, NEED__RES);
|
||||
save = errno;
|
||||
__libc_lock_unlock (lock);
|
||||
__set_errno (save);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user