aboutsummaryrefslogtreecommitdiff
path: root/nss
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2008-04-09 15:49:54 +0000
committerUlrich Drepper <drepper@redhat.com>2008-04-09 15:49:54 +0000
commit9aef35a5699c33e2db921a0ee589aff460aad3d8 (patch)
tree4f2e034a0d52420f69d9b6c9d730c70e508aa9f0 /nss
parenta7925a24fe104a2ab54fb8a6bdec1e5cf80a8db7 (diff)
downloadglibc-9aef35a5699c33e2db921a0ee589aff460aad3d8.zip
glibc-9aef35a5699c33e2db921a0ee589aff460aad3d8.tar.gz
glibc-9aef35a5699c33e2db921a0ee589aff460aad3d8.tar.bz2
* nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno.
Diffstat (limited to 'nss')
-rw-r--r--nss/nss_files/files-XXX.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nss/nss_files/files-XXX.c b/nss/nss_files/files-XXX.c
index 426007e..852b58a 100644
--- a/nss/nss_files/files-XXX.c
+++ b/nss/nss_files/files-XXX.c
@@ -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)
{