[Bug 2049] Request for a configurable option for SFTP to display login information to the user after a successful login.

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Thu Sep 22 02:42:50 AEST 2022


https://bugzilla.mindrot.org/show_bug.cgi?id=2049

Jordan Brown <mindrot at jordan.maileater.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mindrot at jordan.maileater.ne
                   |                            |t

--- Comment #16 from Jordan Brown <mindrot at jordan.maileater.net> ---
This fix appears to have introduced a regression:  it emits the
accumulated loginmsg as a banner, but does not clear it and so later
(in session.c, in do_login calling display_loginmsg) those messages are
emitted again as plain session text.

It looks like the fix would be to call sshbuf_reset(loginmsg) after
calling userauth_send_banner().

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.


More information about the openssh-bugs mailing list