From: drepper Date: Sun, 10 Aug 1997 17:22:23 +0000 (+0000) Subject: (internal_setent): If opening of file failed with EGAIN return X-Git-Tag: libc-ud-970810~89 X-Git-Url: http://git.csclub.uwaterloo.ca/?p=kopensolaris-gnu%2Fglibc.git;a=commitdiff_plain;h=67453a272c22f69f50534e6adb49481da165923f (internal_setent): If opening of file failed with EGAIN return NSS_STATUS_TRYAGAIN. --- diff --git a/nss/nss_files/files-alias.c b/nss/nss_files/files-alias.c index 0a910aa0fe..bf4fa8a2f0 100644 --- a/nss/nss_files/files-alias.c +++ b/nss/nss_files/files-alias.c @@ -49,7 +49,7 @@ internal_setent (void) stream = fopen ("/etc/aliases", "r"); if (stream == NULL) - status = NSS_STATUS_UNAVAIL; + status = errno == EAGAIN ? NSS_STATUS_TRYAGAIN : NSS_STATUS_UNAVAIL; else { /* We have to make sure the file is `closed on exec'. */