* grp.cc (read_group): Revert previous change.

* uinfo.cc (pwdgrp::load): Always reset curr_lines.
This commit is contained in:
Corinna Vinschen
2003-08-17 17:50:40 +00:00
parent 919497ee6b
commit 981f9625f3
3 changed files with 7 additions and 5 deletions

View File

@@ -458,6 +458,7 @@ pwdgrp::load (const char *posix_fname)
if (buf)
free (buf);
buf = NULL;
curr_lines = 0;
pc.check (posix_fname);
etc_ix = etc::init (etc_ix, pc);
@@ -496,7 +497,6 @@ pwdgrp::load (const char *posix_fname)
CloseHandle (fh);
buf[read_bytes] = '\0';
char *eptr = buf;
curr_lines = 0;
while ((eptr = add_line (eptr)))
continue;
debug_printf ("%s curr_lines %d", posix_fname, curr_lines);