This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch, master, updated. glibc-2.14-194-g89f447e
- From: drepper at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 20 Aug 2011 19:25:47 -0000
- Subject: GNU C Library master sources branch, master, updated. glibc-2.14-194-g89f447e
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via 89f447edba330554fb50b19009938c8c19cc7414 (commit)
from 5dc4290c5b587c9b1fa960588a83c8d6a63ce43b (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=89f447edba330554fb50b19009938c8c19cc7414
commit 89f447edba330554fb50b19009938c8c19cc7414
Author: Ulrich Drepper <drepper@gmail.com>
Date: Sat Aug 20 15:25:16 2011 -0400
Minor optimizatin in alias lookup in files NSS module
diff --git a/ChangeLog b/ChangeLog
index ca38ec3..5af9c0b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
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
for LD_DEBUG=scopes.
(dl_open_worker): Also print scope of newly loaded dependencies.
diff --git a/nss/nss_files/files-alias.c b/nss/nss_files/files-alias.c
index 57cc982..0a722b9 100644
--- a/nss/nss_files/files-alias.c
+++ b/nss/nss_files/files-alias.c
@@ -1,5 +1,5 @@
/* 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.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
@@ -166,7 +166,7 @@ get_next_alias (const char *match, struct aliasent *result,
char *line;
/* Check whether the buffer is large enough for even trying to
- read something. */
+ read something. */
if (room_left < 2)
goto no_more_room;
@@ -264,7 +264,7 @@ get_next_alias (const char *match, struct aliasent *result,
if (listfile != NULL
&& (old_line = strdup (line)) != NULL)
{
- while (! feof (listfile))
+ while (! feof_unlocked (listfile))
{
first_unused[room_left - 1] = '\xff';
line = fgets_unlocked (first_unused, room_left,
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 2 ++
nss/nss_files/files-alias.c | 6 +++---
2 files changed, 5 insertions(+), 3 deletions(-)
hooks/post-receive
--
GNU C Library master sources