Skip to content

Commit

Permalink
* nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrich Drepper committed Apr 9, 2008
1 parent a7925a2 commit 9aef35a
Show file tree
Hide file tree
Showing 3 changed files with 234 additions and 269 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2008-04-09 Jakub Jelinek <jakub@redhat.com>

* nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.

2008-04-09 Ulrich Drepper <drepper@redhat.com>

[BZ #5998]
Expand Down
2 changes: 1 addition & 1 deletion nss/nss_files/files-XXX.c
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ CONCAT(_nss_files_get,ENTNAME_r) (struct STRUCTURE *result, char *buffer,

status = internal_setent (0);

__set_errno (errno);
__set_errno (save_errno);

if (status == NSS_STATUS_SUCCESS && fgetpos (stream, &position) < 0)
{
Expand Down
Loading

0 comments on commit 9aef35a

Please sign in to comment.