summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
authorKevin Steves <stevesk@pobox.com>2000-10-07 13:24:00 +0000
committerKevin Steves <stevesk@pobox.com>2000-10-07 13:24:00 +0000
commit48b7cc0dd7d166ea0ea76c6c2a1da26923e7ac32 (patch)
tree9ceb7ce8ff168aabad12860f0f3e73152c501e66 /session.c
parentcccca2789073abe1aa781978d25d1d2e7736aad4 (diff)
- (stevesk) Fix detection of pw_class struct member in configure;
patch from KAMAHARA Junzo <kamahara@cc.kshosen.ac.jp>
Diffstat (limited to 'session.c')
-rw-r--r--session.c4
1 files changed, 2 insertions, 2 deletions
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)
244 s = session_new(); 244 s = session_new();
245 s->pw = pw; 245 s->pw = pw;
246 246
247#ifdef HAVE_LOGIN_CAP 247#if defined(HAVE_LOGIN_CAP) && defined(HAVE_PW_CLASS_IN_PASSWD)
248 if ((lc = login_getclass(pw->pw_class)) == NULL) { 248 if ((lc = login_getclass(pw->pw_class)) == NULL) {
249 error("unable to get login class"); 249 error("unable to get login class");
250 return; 250 return;
@@ -1966,7 +1966,7 @@ do_authenticated2(void)
1966 close(startup_pipe); 1966 close(startup_pipe);
1967 startup_pipe = -1; 1967 startup_pipe = -1;
1968 } 1968 }
1969#ifdef HAVE_LOGIN_CAP 1969#if defined(HAVE_LOGIN_CAP) && defined(HAVE_PW_CLASS_IN_PASSWD)
1970 pw = auth_get_user(); 1970 pw = auth_get_user();
1971 if ((lc = login_getclass(pw->pw_class)) == NULL) { 1971 if ((lc = login_getclass(pw->pw_class)) == NULL) {
1972 error("unable to get login class"); 1972 error("unable to get login class");