aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2007-01-12 15:56:58 +0000
committerJakub Jelinek <jakub@redhat.com>2007-01-12 15:56:58 +0000
commitc8fe889a4347586c30409c6751c8c5dede2d5936 (patch)
tree2c6640f914426b3e34880ac154bb9522138dfacc
parentbae790d6ab83c836df0b0ec88d655b16c6c62f64 (diff)
downloadglibc-c8fe889a4347586c30409c6751c8c5dede2d5936.tar
glibc-c8fe889a4347586c30409c6751c8c5dede2d5936.tar.gz
glibc-c8fe889a4347586c30409c6751c8c5dede2d5936.tar.bz2
glibc-c8fe889a4347586c30409c6751c8c5dede2d5936.zip
* nss/nss_files/files-alias.c (get_next_alias): Set line back
to first_unused after parsing :include: file.
-rw-r--r--ChangeLog5
-rw-r--r--nss/nss_files/files-alias.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 7eaa003b3a..d0852273c3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-11-14 Jakub Jelinek <jakub@redhat.com>
+
+ * nss/nss_files/files-alias.c (get_next_alias): Set line back
+ to first_unused after parsing :include: file.
+
2006-11-14 Ulrich Drepper <drepper@redhat.com>
* po/nl.po: Update from translation team.
diff --git a/nss/nss_files/files-alias.c b/nss/nss_files/files-alias.c
index 8ee54f121f..c4717e1242 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 Free Software Foundation, Inc.
+ Copyright (C) 1996,97,98,99,2002,2006 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
@@ -298,8 +298,8 @@ get_next_alias (const char *match, struct aliasent *result,
first_unused[room_left - 1] = '\0';
strncpy (first_unused, old_line, room_left);
- if (old_line != NULL)
- free (old_line);
+ free (old_line);
+ line = first_unused;
if (first_unused[room_left - 1] != '\0')
goto no_more_room;