diff options
author | Darren Tucker <dtucker@zip.com.au> | 2005-09-30 10:22:45 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2005-09-30 10:22:45 +1000 |
commit | da221e306f2d070a60a6b2aee68c5818d92ceaeb (patch) | |
tree | b38286b9462eef3390fa04f079406b19eb772f97 | |
parent | e4b1734886ec144b1bafb6319c2b2f28c2608fd6 (diff) |
- (dtucker) [monitor.c] Bug #1087: Send loginmsg to preauth privsep
child during PAM account check without clearing it. This restores the
post-login warnings such as LDAP password expiry. Patch from Tomas Mraz
with help from several others.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | monitor.c | 4 |
2 files changed, 6 insertions, 4 deletions
@@ -1,6 +1,10 @@ 20050930 - (dtucker) [openbsd-compat/openbsd-compat.h] Bug #1096: Add prototype for strtoll. Patch from o.flebbe at science-computing.de. + - (dtucker) [monitor.c] Bug #1087: Send loginmsg to preauth privsep + child during PAM account check without clearing it. This restores the + post-login warnings such as LDAP password expiry. Patch from Tomas Mraz + with help from several others. 20050922 - (dtucker) [configure.ac] Use -R linker flag for libedit too; patch from @@ -2997,4 +3001,4 @@ - (djm) Trim deprecated options from INSTALL. Mention UsePAM - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu -$Id: ChangeLog,v 1.3887.2.2 2005/09/29 23:55:12 dtucker Exp $ +$Id: ChangeLog,v 1.3887.2.3 2005/09/30 00:22:45 dtucker Exp $ @@ -834,9 +834,7 @@ mm_answer_pam_account(int sock, Buffer *m) ret = do_pam_account(); buffer_put_int(m, ret); - buffer_append(&loginmsg, "\0", 1); - buffer_put_cstring(m, buffer_ptr(&loginmsg)); - buffer_clear(&loginmsg); + buffer_put_string(m, buffer_ptr(&loginmsg), buffer_len(&loginmsg)); mm_request_send(sock, MONITOR_ANS_PAM_ACCOUNT, m); |