diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2008-02-01 23:18:55 +0100 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2008-02-01 23:18:55 +0100 |
commit | 9381b04ad85d7cacf092e67bb49b2576196a36ef (patch) | |
tree | 970de5cd57c0505b7ed7ed3977b8921871cf57d0 /nss/networks.c | |
parent | 5bb9f8aade94d96f01c0414b887ab0a671a934dd (diff) |
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
Diffstat (limited to 'nss/networks.c')
-rw-r--r-- | nss/networks.c | 8 |
1 files changed, 0 insertions, 8 deletions
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( |