mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-07 06:43:00 +03:00
Minor optimizatin in alias lookup in files NSS module
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
2011-08-20 Ulrich Drepper <drepper@gmail.com>
|
2011-08-20 Ulrich Drepper <drepper@gmail.com>
|
||||||
|
|
||||||
|
* nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked.
|
||||||
|
|
||||||
* elf/dl-open.c (add_to_global): Report additions to the global scope
|
* elf/dl-open.c (add_to_global): Report additions to the global scope
|
||||||
for LD_DEBUG=scopes.
|
for LD_DEBUG=scopes.
|
||||||
(dl_open_worker): Also print scope of newly loaded dependencies.
|
(dl_open_worker): Also print scope of newly loaded dependencies.
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
/* Mail alias file parser in nss_files module.
|
/* Mail alias file parser in nss_files module.
|
||||||
Copyright (C) 1996,97,98,99,2002,2006,2007 Free Software Foundation, Inc.
|
Copyright (C) 1996-1999,2002,2006,2007,2011 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
|
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
|
||||||
|
|
||||||
@@ -264,7 +264,7 @@ get_next_alias (const char *match, struct aliasent *result,
|
|||||||
if (listfile != NULL
|
if (listfile != NULL
|
||||||
&& (old_line = strdup (line)) != NULL)
|
&& (old_line = strdup (line)) != NULL)
|
||||||
{
|
{
|
||||||
while (! feof (listfile))
|
while (! feof_unlocked (listfile))
|
||||||
{
|
{
|
||||||
first_unused[room_left - 1] = '\xff';
|
first_unused[room_left - 1] = '\xff';
|
||||||
line = fgets_unlocked (first_unused, room_left,
|
line = fgets_unlocked (first_unused, room_left,
|
||||||
|
Reference in New Issue
Block a user