(__fgetspent_r): Set errno to ENOENT for returning after last entry.
authordrepper <drepper>
Thu, 10 Jun 1999 00:21:33 +0000 (00:21 +0000)
committerdrepper <drepper>
Thu, 10 Jun 1999 00:21:33 +0000 (00:21 +0000)
shadow/fgetspent_r.c

index a61483c..8f7e303 100644 (file)
@@ -53,6 +53,7 @@ __fgetspent_r (FILE *stream, struct spwd *resbuf, char *buffer, size_t buflen,
        {
          funlockfile (stream);
          *result = NULL;
+         __set_errno (ENOENT);
          return errno;
        }
       if (p == NULL || buffer[buflen - 1] != '\xff')