From 9aef35a5699c33e2db921a0ee589aff460aad3d8 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 9 Apr 2008 15:49:54 +0000 Subject: * nss_files/files-XXX.c (_nss_files_getXXent_r): Restore saved errno. --- nss/nss_files/files-XXX.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nss/nss_files/files-XXX.c') diff --git a/nss/nss_files/files-XXX.c b/nss/nss_files/files-XXX.c index 426007e1ad..852b58a7e5 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) { -- cgit v1.2.3