Mailing List Archive

[Bug 817] Opening >1 session and shell results in the MOTD being repeated
http://bugzilla.mindrot.org/show_bug.cgi?id=817

Summary: Opening >1 session and shell results in the MOTD being
repeated
Product: Portable OpenSSH
Version: 3.6.1p2
Platform: All
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: sshd
AssignedTo: openssh-bugs@mindrot.org
ReportedBy: z3p@twistedmatrix.com


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.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 817] Opening >1 session and shell results in the MOTD being repeated [ In reply to ]
http://bugzilla.mindrot.org/show_bug.cgi?id=817

dtucker@zip.com.au changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED



------- Additional Comments From dtucker@zip.com.au 2004-03-23 23:13 -------
What client are you using?



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 817] Opening >1 session and shell results in the MOTD being repeated [ In reply to ]
http://bugzilla.mindrot.org/show_bug.cgi?id=817





------- Additional Comments From z3p@twistedmatrix.com 2004-03-23 23:15 -------
Twisted Conch (http://www.twistedmatrix.com/).



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 817] Opening >1 session and shell results in the MOTD being repeated [ In reply to ]
http://bugzilla.mindrot.org/show_bug.cgi?id=817





------- Additional Comments From dtucker@zip.com.au 2004-03-24 00:41 -------
Created an attachment (id=575)
--> (http://bugzilla.mindrot.org/attachment.cgi?id=575&action=view)
Clear loginmsg after fork.

Please try this patch.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 817] Opening >1 session and shell results in the MOTD being repeated [ In reply to ]
http://bugzilla.mindrot.org/show_bug.cgi?id=817





------- Additional Comments From z3p@twistedmatrix.com 2004-03-24 07:59 -------
Yep, works like a charm!



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 817] Opening >1 session and shell results in the MOTD being repeated [ In reply to ]
http://bugzilla.mindrot.org/show_bug.cgi?id=817





------- Additional Comments From dtucker@zip.com.au 2004-03-25 16:28 -------
Cool. Is the patch OK for 3.8.1p1?



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 817] Opening >1 session and shell results in the MOTD being repeated [ In reply to ]
http://bugzilla.mindrot.org/show_bug.cgi?id=817

djm@mindrot.org changed:

What |Removed |Added
----------------------------------------------------------------------------
Attachment #575| |ok
Status| |



------- Additional Comments From djm@mindrot.org 2004-03-26 03:54 -------
(From update of attachment 575)
OK for 3.8.1p1. Make sure it gets into OpenBSD after the unlock too, if
relevant.




------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 817] Opening >1 session and shell results in the MOTD being repeated [ In reply to ]
http://bugzilla.mindrot.org/show_bug.cgi?id=817

dtucker@zip.com.au changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED



------- Additional Comments From dtucker@zip.com.au 2004-03-26 22:46 -------
Patch applied, thanks for the report.

Note that there is currently no equivalent to loginmsg in OpenBSD's sshd.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.