(internal_setent): If opening of file failed with EGAIN return
authordrepper <drepper>
Sun, 10 Aug 1997 17:22:23 +0000 (17:22 +0000)
committerdrepper <drepper>
Sun, 10 Aug 1997 17:22:23 +0000 (17:22 +0000)
NSS_STATUS_TRYAGAIN.

nss/nss_files/files-alias.c

index 0a910aa..bf4fa8a 100644 (file)
@@ -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'.  */