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:
parent
caa18809df
commit
e2527daf1a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=113992
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user