* grp.cc (getgrent32): Only refresh group entries when at beginning.

(internal_getgrsid): Only refresh if uninitialized.
(internal_getgrent): Ditto.
* passwd.cc (getpwent): Only refresh passwd entries when at beginning.
(pwdgrp::read_passwd): linebuf *cannot* be NO_COPY.
(internal_getpwsid): Only refresh if uninitialized.
(getpass): No need to refresh passwd data here.
* pwdgrp.h (refresh): Eliminate default.
This commit is contained in:
Christopher Faylor
2003-02-01 18:41:29 +00:00
parent 05d2a9a4fb
commit 6688a0618e
4 changed files with 21 additions and 11 deletions

View File

@@ -67,7 +67,7 @@ public:
int curr_lines;
void load (const char *);
void refresh (bool check = true)
void refresh (bool check)
{
if (!check && initialized)
return;