diff options
author | fanf <fanf@FreeBSD.org> | 2002-07-29 00:36:24 +0000 |
---|---|---|
committer | fanf <fanf@FreeBSD.org> | 2002-07-29 00:36:24 +0000 |
commit | 1ae0b432fe0453cb73e8adc9ef48db2fb4d802ba (patch) | |
tree | db49903f53d83a232c25ec286665fc73956e46c1 /crypto/openssh | |
parent | 830c1b765cfe95293f0ee1c4b08633bf4670faa4 (diff) | |
download | FreeBSD-src-1ae0b432fe0453cb73e8adc9ef48db2fb4d802ba.zip FreeBSD-src-1ae0b432fe0453cb73e8adc9ef48db2fb4d802ba.tar.gz |
Use login_getpwclass() instead of login_getclass() so that the root
vs. default login class distinction is made correctly.
PR: 37416
Approved by: des
MFC after: 4 days
Diffstat (limited to 'crypto/openssh')
-rw-r--r-- | crypto/openssh/auth.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/openssh/auth.c b/crypto/openssh/auth.c index 066b50d..c90865f 100644 --- a/crypto/openssh/auth.c +++ b/crypto/openssh/auth.c @@ -24,6 +24,7 @@ #include "includes.h" RCSID("$OpenBSD: auth.c,v 1.43 2002/05/17 14:27:55 millert Exp $"); +RCSID("$FreeBSD$"); #ifdef HAVE_LOGIN_H #include <login.h> @@ -479,7 +480,7 @@ getpwnamallow(const char *user) if (pw == NULL || !allowed_user(pw)) return (NULL); #ifdef HAVE_LOGIN_CAP - if ((lc = login_getclass(pw->pw_class)) == NULL) { + if ((lc = login_getpwclass(pw)) == NULL) { debug("unable to get login class: %s", user); return (NULL); } |