Extra newlines in sshd login messages

Darren Tucker dtucker at zip.com.au
Sat Jul 3 20:56:21 EST 2004


Hi.
	Some people have reported that login messages reported by sshd have 
extra newlines.  It looks like there are 2 causes of this:

a) some PAM modules like to return messages of "", which sshd dutifully 
appends a newline to and stores for later display.

b) display_loginmsg appends a newline too (I think this dates back to 
before PAM supplied its own newlines).

	The attached (trivial) patch fixes this: it auth-pam will not append 
newlines, and loginmsg is displayed as a literal string (so any newlines 
needed must be supplied by whatever is appending to loginmsg).

-- 
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.



-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: openssh-pam-no_extra_newlines.patch
Url: http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20040703/bbfb59f0/attachment.ksh 


More information about the openssh-unix-dev mailing list