Bug 817

Summary: Opening >1 session and shell results in the MOTD being repeated
Product: Portable OpenSSH Reporter: Paul Swartz <z3p>
Component: sshdAssignee: OpenSSH Bugzilla mailing list <openssh-bugs>
Status: CLOSED FIXED    
Severity: normal    
Priority: P2    
Version: 3.6.1p2   
Hardware: All   
OS: Linux   
Attachments:
Description Flags
Clear loginmsg after fork. djm: ok+

Description Paul Swartz 2004-03-23 23:09:41 AEDT
If a connected client with an open shell starts a new session channel and
connects it to a shell, the MOTD will be repeated twice in the new shell.  It
will be repeated 3 times in a third, etc.  The number of open shells is not
important, only the total number of shells since the start of the session.
Comment 1 Darren Tucker 2004-03-23 23:13:37 AEDT
What client are you using?
Comment 2 Paul Swartz 2004-03-23 23:15:56 AEDT
Twisted Conch (http://www.twistedmatrix.com/).
Comment 3 Darren Tucker 2004-03-24 00:41:47 AEDT
Created attachment 575 [details]
Clear loginmsg after fork.

Please try this patch.
Comment 4 Paul Swartz 2004-03-24 07:59:58 AEDT
Yep, works like a charm!
Comment 5 Darren Tucker 2004-03-25 16:28:02 AEDT
Cool.  Is the patch OK for 3.8.1p1?
Comment 6 Damien Miller 2004-03-26 03:54:52 AEDT
Comment on attachment 575 [details]
Clear loginmsg after fork.

OK for 3.8.1p1. Make sure it gets into OpenBSD after the unlock too, if
relevant.
Comment 7 Darren Tucker 2004-03-26 22:46:38 AEDT
Patch applied, thanks for the report.

Note that there is currently no equivalent to loginmsg in OpenBSD's sshd.
Comment 8 Damien Miller 2004-04-14 12:24:20 AEST
Mass change of RESOLVED bugs to CLOSED