Use login_getpwclass() instead of login_getclass() so that default
mapping of user login classes works. Obtained from: TrustedBSD project Sponsored by: DARPA, NAI Labs
This commit is contained in:
parent
1e23f97e5c
commit
885a59f2e0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=91431
@ -149,7 +149,7 @@ do_authenticated(Authctxt *authctxt)
|
||||
startup_pipe = -1;
|
||||
}
|
||||
#ifdef HAVE_LOGIN_CAP
|
||||
if ((lc = login_getclass(authctxt->pw->pw_class)) == NULL) {
|
||||
if ((lc = login_getpwclass(authctxt->pw)) == NULL) {
|
||||
error("unable to get login class");
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user