diff options
author | Jakub Jelinek <jakub@redhat.com> | 2008-03-26 11:22:19 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2008-03-26 11:22:19 +0000 |
commit | f23e5ee26d14b7931c65e5df0bf46ff356c6177b (patch) | |
tree | 7ec5160f8a03894ed0f4be9a1c312ed5bffdc7e5 /nss | |
parent | d0b6ac6c5023a223e150c49c422c7ad2bd99456c (diff) | |
download | glibc-f23e5ee26d14b7931c65e5df0bf46ff356c6177b.tar.gz |
Updated to fedora-glibc-20080326T1041cvs/fedora-glibc-2_7_90-12
Diffstat (limited to 'nss')
-rw-r--r-- | nss/nss_files/files-XXX.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/nss/nss_files/files-XXX.c b/nss/nss_files/files-XXX.c index 2149d1c401..426007e1ad 100644 --- a/nss/nss_files/files-XXX.c +++ b/nss/nss_files/files-XXX.c @@ -1,5 +1,6 @@ /* Common code for file-based databases in nss_files module. - Copyright (C) 1996-1999,2001,2002,2004,2007 Free Software Foundation, Inc. + Copyright (C) 1996-1999,2001,2002,2004,2007,2008 + Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -254,8 +255,12 @@ CONCAT(_nss_files_get,ENTNAME_r) (struct STRUCTURE *result, char *buffer, /* Be prepared that the set*ent function was not called before. */ if (stream == NULL) { + int save_errno = errno; + status = internal_setent (0); + __set_errno (errno); + if (status == NSS_STATUS_SUCCESS && fgetpos (stream, &position) < 0) { fclose (stream); |