In compat mode, we `redispatch' the lookup. It is probably a good

idea to re-initialize `struct passwd', because e.g. pw_class might
get set by one module, but not by another.  Add another call to the
internal pwd_init function to accomplish this.

Sponsored by:	DARPA, Network Associates Laboratories
This commit is contained in:
nectar 2003-04-24 23:56:58 +00:00
parent c5179875bb
commit 84d5de0a4a

View File

@ -1321,6 +1321,7 @@ compat_redispatch(struct compat_state *st, enum nss_lookup_type how,
for (i = 0; i < sizeof(dtab)/sizeof(dtab[0]) - 1; i++)
dtab[i].mdata = (void *)lookup_how;
more:
pwd_init(pwd);
switch (lookup_how) {
case nss_lt_all:
rv = _nsdispatch(&discard, dtab, NSDB_PASSWD_COMPAT,