(__fgetpwent_r): Set errno to ENOENT for returning after last entry.
authordrepper <drepper>
Thu, 10 Jun 1999 00:21:04 +0000 (00:21 +0000)
committerdrepper <drepper>
Thu, 10 Jun 1999 00:21:04 +0000 (00:21 +0000)
pwd/fgetpwent_r.c

index c2a746d..33f49ea 100644 (file)
@@ -86,6 +86,7 @@ __fgetpwent_r (FILE *stream, struct passwd *resbuf, char *buffer,
        {
          funlockfile (stream);
          *result = NULL;
+         __set_errno (ENOENT);
          return errno;
        }
       if (p == NULL || buffer[buflen - 1] != '\xff')