diff options
Diffstat (limited to 'nss')
-rw-r--r-- | nss/getXXbyYY_r.c | 3 | ||||
-rw-r--r-- | nss/nss_files/files-XXX.c | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/nss/getXXbyYY_r.c b/nss/getXXbyYY_r.c index 8358e2f..06aebb4 100644 --- a/nss/getXXbyYY_r.c +++ b/nss/getXXbyYY_r.c @@ -229,7 +229,8 @@ done: #ifdef POSTPROCESS POSTPROCESS; #endif - return status == NSS_STATUS_SUCCESS ? 0 : errno; + return (status == NSS_STATUS_SUCCESS + ? 0 : (status == NSS_STATUS_TRYAGAIN ? EAGAIN : ENOENT)); } diff --git a/nss/nss_files/files-XXX.c b/nss/nss_files/files-XXX.c index da84059..b6b8cf8 100644 --- a/nss/nss_files/files-XXX.c +++ b/nss/nss_files/files-XXX.c @@ -1,5 +1,5 @@ /* Common code for file-based databases in nss_files module. - Copyright (C) 1996, 1997, 1998, 1999, 2001 Free Software Foundation, Inc. + Copyright (C) 1996,1997,1998,1999,2001,2002 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 @@ -191,7 +191,6 @@ internal_getent (struct STRUCTURE *result, if (p == NULL) { /* End of file or read error. */ - *errnop = ENOENT; H_ERRNO_SET (HOST_NOT_FOUND); return NSS_STATUS_NOTFOUND; } |