Summary: | [PATCH] sshd doesn't set the root login class properly | ||
---|---|---|---|
Product: | Base System | Reporter: | Tony Finch <dot> |
Component: | bin | Assignee: | Tony Finch <fanf> |
Status: | Closed FIXED | ||
Severity: | Affects Only Me | ||
Priority: | Normal | ||
Version: | 4.5-STABLE | ||
Hardware: | Any | ||
OS: | Any |
Description
Tony Finch
2002-04-24 15:10:01 UTC
State Changed From-To: open->patched This has already been fixed in rev 1.19 in current. This is a MFC remined. Responsible Changed From-To: freebsd-bugs->green Over to green who made the commit to current. State Changed From-To: patched->closed MFCed, thanks! State Changed From-To: closed->open This bug has returned with the introduction of openssh-3.4p1. Responsible Changed From-To: green->fanf I'm investigating this one. This re-fixes the login class handling in recent versions of sshd. Shall I commit? --- auth.c 3 Jul 2002 22:11:41 -0000 1.3.2.5 +++ auth.c 26 Jul 2002 21:52:05 -0000 @@ -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 @@ 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); } Tony. -- f.a.n.finch <dot@dotat.at> http://dotat.at/ WEST FORTIES CROMARTY FORTH TYNE DOGGER: VARIABLE BECOMING SOUTHERLY 3 OR 4, OCCASIONALLY 5 LATER. FAIR. GOOD BECOMING MODERATE OR POOR. Tony Finch <fanf@FreeBSD.org> writes: > This re-fixes the login class handling in recent versions of sshd. > Shall I commit? Yeah, thanks. DES -- Dag-Erling Smorgrav - des@ofug.org State Changed From-To: open->patched Fix committed to -CURRENT State Changed From-To: patched->closed Fix MFCed. |