summaryrefslogtreecommitdiff
path: root/security/openssh/patches/patch-auth.c
blob: c04a7ac0c314536981ae3381aa6258eb654b0fe1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$NetBSD: patch-auth.c,v 1.6 2019/06/04 09:08:06 he Exp $

* Use login_getpwclass() instead of login_getclass() so that the root
  vs. default login class distinction is made correctly, from FrrrBSD's
  ports.

--- auth.c.orig	2019-05-01 11:28:52.028281617 +0000
+++ auth.c
@@ -599,7 +599,7 @@ getpwnamallow(struct ssh *ssh, const cha
 	if (!allowed_user(ssh, 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);
 	}