From 48b7cc0dd7d166ea0ea76c6c2a1da26923e7ac32 Mon Sep 17 00:00:00 2001 From: Kevin Steves Date: Sat, 7 Oct 2000 13:24:00 +0000 Subject: - (stevesk) Fix detection of pw_class struct member in configure; patch from KAMAHARA Junzo --- session.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'session.c') diff --git a/session.c b/session.c index 446385892..0aa5138c6 100644 --- a/session.c +++ b/session.c @@ -244,7 +244,7 @@ do_authenticated(struct passwd * pw) s = session_new(); s->pw = pw; -#ifdef HAVE_LOGIN_CAP +#if defined(HAVE_LOGIN_CAP) && defined(HAVE_PW_CLASS_IN_PASSWD) if ((lc = login_getclass(pw->pw_class)) == NULL) { error("unable to get login class"); return; @@ -1966,7 +1966,7 @@ do_authenticated2(void) close(startup_pipe); startup_pipe = -1; } -#ifdef HAVE_LOGIN_CAP +#if defined(HAVE_LOGIN_CAP) && defined(HAVE_PW_CLASS_IN_PASSWD) pw = auth_get_user(); if ((lc = login_getclass(pw->pw_class)) == NULL) { error("unable to get login class"); -- cgit v1.2.3