mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-01 10:06:57 +03:00
* malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
* nis/nis_defaults.c (__nis_default_access): Don't call getenv twice. * nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv. * sysdeps/generic/unsecvars.h: Add NIS_PATH.
This commit is contained in:
@ -1,3 +1,12 @@
|
|||||||
|
2006-10-11 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
|
* malloc/malloc.c (_int_malloc): Remove unused any_larger variable.
|
||||||
|
|
||||||
|
* nis/nis_defaults.c (__nis_default_access): Don't call getenv twice.
|
||||||
|
|
||||||
|
* nis/nis_subr.c (nis_getnames): Use __secure_getenv instead of getenv.
|
||||||
|
* sysdeps/generic/unsecvars.h: Add NIS_PATH.
|
||||||
|
|
||||||
2006-10-11 Ulrich Drepper <drepper@redhat.com>
|
2006-10-11 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
* include/atomic.c: Define catomic_* operations.
|
* include/atomic.c: Define catomic_* operations.
|
||||||
|
@ -4097,7 +4097,6 @@ _int_malloc(mstate av, size_t bytes)
|
|||||||
for(;;) {
|
for(;;) {
|
||||||
|
|
||||||
int iters = 0;
|
int iters = 0;
|
||||||
bool any_larger = false;
|
|
||||||
while ( (victim = unsorted_chunks(av)->bk) != unsorted_chunks(av)) {
|
while ( (victim = unsorted_chunks(av)->bk) != unsorted_chunks(av)) {
|
||||||
bck = victim->bk;
|
bck = victim->bk;
|
||||||
if (__builtin_expect (victim->size <= 2 * SIZE_SZ, 0)
|
if (__builtin_expect (victim->size <= 2 * SIZE_SZ, 0)
|
||||||
@ -4194,8 +4193,6 @@ _int_malloc(mstate av, size_t bytes)
|
|||||||
fwd->bk = victim;
|
fwd->bk = victim;
|
||||||
bck->fd = victim;
|
bck->fd = victim;
|
||||||
|
|
||||||
if (size >= nb + MINSIZE)
|
|
||||||
any_larger = true;
|
|
||||||
#define MAX_ITERS 10000
|
#define MAX_ITERS 10000
|
||||||
if (++iters >= MAX_ITERS)
|
if (++iters >= MAX_ITERS)
|
||||||
break;
|
break;
|
||||||
|
@ -447,7 +447,7 @@ __nis_default_access (char *param, unsigned int defaults)
|
|||||||
{
|
{
|
||||||
cptr = getenv ("NIS_DEFAULTS");
|
cptr = getenv ("NIS_DEFAULTS");
|
||||||
if (cptr != NULL && strstr (cptr, "access=") != NULL)
|
if (cptr != NULL && strstr (cptr, "access=") != NULL)
|
||||||
result = searchaccess (getenv ("NIS_DEFAULTS"), result);
|
result = searchaccess (cptr, result);
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
@ -178,7 +178,7 @@ nis_getnames (const_nis_name name)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Get the search path, where we have to search "name" */
|
/* Get the search path, where we have to search "name" */
|
||||||
path = getenv ("NIS_PATH");
|
path = __secure_getenv ("NIS_PATH");
|
||||||
if (path == NULL)
|
if (path == NULL)
|
||||||
path = strdupa ("$");
|
path = strdupa ("$");
|
||||||
else
|
else
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
"LOCALDOMAIN\0" \
|
"LOCALDOMAIN\0" \
|
||||||
"LOCPATH\0" \
|
"LOCPATH\0" \
|
||||||
"MALLOC_TRACE\0" \
|
"MALLOC_TRACE\0" \
|
||||||
|
"NIS_PATH\0" \
|
||||||
"NLSPATH\0" \
|
"NLSPATH\0" \
|
||||||
"RESOLV_HOST_CONF\0" \
|
"RESOLV_HOST_CONF\0" \
|
||||||
"RES_OPTIONS\0" \
|
"RES_OPTIONS\0" \
|
||||||
|
Reference in New Issue
Block a user