]> andersk Git - openssh.git/blobdiff - session.c
- (stevesk) Fix detection of pw_class struct member in configure;
[openssh.git] / session.c
index 4463858924d96b83e0fc87ae15b786337417adaa..0aa5138c6e1e1ba22bb1fc1544996318128a48e1 100644 (file)
--- 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");
This page took 0.038614 seconds and 4 git commands to generate.