Bug 817 - Opening >1 session and shell results in the MOTD being repeated
Summary: Opening >1 session and shell results in the MOTD being repeated
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: sshd (show other bugs)
Version: 3.6.1p2
Hardware: All Linux
: P2 normal
Assignee: OpenSSH Bugzilla mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-23 23:09 AEDT by Paul Swartz
Modified: 2004-04-14 12:24 AEST (History)
0 users

See Also:


Attachments
Clear loginmsg after fork. (734 bytes, patch)
2004-03-24 00:41 AEDT, Darren Tucker
djm: ok+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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