From 9381b04ad85d7cacf092e67bb49b2576196a36ef Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Fri, 1 Feb 2008 22:18:55 +0000 Subject: do not set errno (and h_errno) if we got the last entry from get*ent() (this apparently is needed by coreutils' id and groups commands) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@601 ef36b2f9-881f-0410-afb5-c4e39611909c --- nss/networks.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'nss/networks.c') diff --git a/nss/networks.c b/nss/networks.c index 0cb0b2c..6b3dcd1 100644 --- a/nss/networks.c +++ b/nss/networks.c @@ -58,14 +58,6 @@ #define ERROR_OUT_WRITEERROR(fp) \ ERROR_OUT_READERROR(fp) -#undef ERROR_OUT_NOSUCCESS -#define ERROR_OUT_NOSUCCESS(fp,retv) \ - (void)tio_close(fp); \ - fp=NULL; \ - *errnop=ENOENT; \ - *h_errnop=HOST_NOT_FOUND; \ - return NSS_STATUS_NOTFOUND; - /* read a single network entry from the stream, ignoring entries that are not AF_INET (IPv4), result is stored in result */ static enum nss_status read_netent( -- cgit v1.2.3