diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | acconfig.h | 3 | ||||
-rw-r--r-- | auth-pam.c | 4 | ||||
-rw-r--r-- | configure.in | 1 |
4 files changed, 11 insertions, 1 deletions
@@ -1,3 +1,7 @@ | |||
1 | 20000709 | ||
2 | - (djm) Only enable PAM_TTY kludge for Linux. Problem report from | ||
3 | Kevin Steves <stevesk@sweden.hp.com> | ||
4 | |||
1 | 20000708 | 5 | 20000708 |
2 | - (djm) Fix bad fprintf format handling in auth-pam.c. Patch from | 6 | - (djm) Fix bad fprintf format handling in auth-pam.c. Patch from |
3 | Aaron Hopkins <aaron@die.net> | 7 | Aaron Hopkins <aaron@die.net> |
diff --git a/acconfig.h b/acconfig.h index af990565c..e11bf5e60 100644 --- a/acconfig.h +++ b/acconfig.h | |||
@@ -6,6 +6,9 @@ | |||
6 | 6 | ||
7 | @TOP@ | 7 | @TOP@ |
8 | 8 | ||
9 | /* Work around problematic Linux PAM modules handling of PAM_TTY */ | ||
10 | #undef PAM_TTY_KLUDGE | ||
11 | |||
9 | /* Use PIPES instead of a socketpair() */ | 12 | /* Use PIPES instead of a socketpair() */ |
10 | #undef USE_PIPES | 13 | #undef USE_PIPES |
11 | 14 | ||
diff --git a/auth-pam.c b/auth-pam.c index 27e59ef98..a3067d619 100644 --- a/auth-pam.c +++ b/auth-pam.c | |||
@@ -34,7 +34,7 @@ | |||
34 | #include "xmalloc.h" | 34 | #include "xmalloc.h" |
35 | #include "servconf.h" | 35 | #include "servconf.h" |
36 | 36 | ||
37 | RCSID("$Id: auth-pam.c,v 1.9 2000/07/08 00:14:08 djm Exp $"); | 37 | RCSID("$Id: auth-pam.c,v 1.10 2000/07/09 11:21:52 djm Exp $"); |
38 | 38 | ||
39 | #define NEW_AUTHTOK_MSG \ | 39 | #define NEW_AUTHTOK_MSG \ |
40 | "Warning: You password has expired, please change it now" | 40 | "Warning: You password has expired, please change it now" |
@@ -246,6 +246,7 @@ void start_pam(struct passwd *pw) | |||
246 | PAM_STRERROR((pam_handle_t *)pamh, pam_retval)); | 246 | PAM_STRERROR((pam_handle_t *)pamh, pam_retval)); |
247 | } | 247 | } |
248 | 248 | ||
249 | #ifdef PAM_TTY_KLUDGE | ||
249 | /* | 250 | /* |
250 | * Some PAM modules (e.g. pam_time) require a TTY to operate, | 251 | * Some PAM modules (e.g. pam_time) require a TTY to operate, |
251 | * and will fail in various stupid ways if they don't get one. | 252 | * and will fail in various stupid ways if they don't get one. |
@@ -258,6 +259,7 @@ void start_pam(struct passwd *pw) | |||
258 | fatal("PAM set tty failed: %.200s", | 259 | fatal("PAM set tty failed: %.200s", |
259 | PAM_STRERROR((pam_handle_t *)pamh, pam_retval)); | 260 | PAM_STRERROR((pam_handle_t *)pamh, pam_retval)); |
260 | } | 261 | } |
262 | #endif /* PAM_TTY_KLUDGE */ | ||
261 | 263 | ||
262 | fatal_add_cleanup(&pam_cleanup_proc, NULL); | 264 | fatal_add_cleanup(&pam_cleanup_proc, NULL); |
263 | } | 265 | } |
diff --git a/configure.in b/configure.in index ace6de4b4..4d0f6ea43 100644 --- a/configure.in +++ b/configure.in | |||
@@ -99,6 +99,7 @@ case "$host" in | |||
99 | *-*-linux*) | 99 | *-*-linux*) |
100 | no_dev_ptmx=1 | 100 | no_dev_ptmx=1 |
101 | AC_DEFINE(DONT_TRY_OTHER_AF) | 101 | AC_DEFINE(DONT_TRY_OTHER_AF) |
102 | AC_DEFINE(PAM_TTY_KLUDGE) | ||
102 | inet6_default_4in6=yes | 103 | inet6_default_4in6=yes |
103 | ;; | 104 | ;; |
104 | *-*-netbsd*) | 105 | *-*-netbsd*) |