Skip to content

Commit

Permalink
* nss/nss_files/files-alias.c (get_next_alias): Set line back
Browse files Browse the repository at this point in the history
	to first_unused after parsing :include: file.
  • Loading branch information
Ulrich Drepper committed Nov 15, 2006
1 parent 2c53fa2 commit 3f1e920
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
* po/nl.po: Update from translation team.

* timezone/zdump.c: Redo fix for BZ #3137.
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-10 Ulrich Drepper <drepper@redhat.com>

Expand Down
6 changes: 3 additions & 3 deletions nss/nss_files/files-alias.c
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 3f1e920

Please sign in to comment.