/* Netgroup file parser in nss_files modules.
- Copyright (C) 1996 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1997 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
/* Remove these characters from the stored line. */
result->cursor -= 2;
- /* Get netxt line. */
+ /* Get next line. */
curlen = getline (&line, &line_len, fp);
if (curlen <= 0)
break;
/* Some sanity checks. */
if (cp == NULL)
- /* User bug. setnetgrent() wasn't called before. */
- abort ();
+ return NSS_STATUS_NOTFOUND;
/* First skip leading spaces. */
while (isspace (*cp))