diff options
author | Kevin Steves <stevesk@pobox.com> | 2000-10-07 13:24:00 +0000 |
---|---|---|
committer | Kevin Steves <stevesk@pobox.com> | 2000-10-07 13:24:00 +0000 |
commit | 48b7cc0dd7d166ea0ea76c6c2a1da26923e7ac32 (patch) | |
tree | 9ceb7ce8ff168aabad12860f0f3e73152c501e66 /session.c | |
parent | cccca2789073abe1aa781978d25d1d2e7736aad4 (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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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"); |