Frank Mohr wrote:> while testing a new pam module i found this problem:
> System: Linux 2.4.18/OpenSSH 3.8p1 client/server
>
> The output from do_login() in session.c (motd, lastlog, stored pam
> messages) isn't displayed when Privilege Separation is enabled.
>
> I added a fflush(stdout) as the last line of do_login(), now it works.
Isn't stdout supposed to be line buffered if it points to a tty?
Anyway, the flush shouldn't hurt, so I've added it to the main code.
Thanks!
--
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.