bugzilla-daemon at mindrot.org
2003-Sep-23  15:30 UTC
[Bug 707] missing banner file now prints empty line
http://bugzilla.mindrot.org/show_bug.cgi?id=707
           Summary: missing banner file now prints empty line
           Product: Portable OpenSSH
           Version: -current
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: trivial
          Priority: P5
         Component: sshd
        AssignedTo: openssh-bugs at mindrot.org
        ReportedBy: Al.Smith at gold.net
New in 3.7p1 and above, if the banner file is missing then sshd will send a
banner to an SSH2 client, containing a newline.
auth2_read_banner() correctly returns a NULL if the file is missing, but
this is lost in the privsep: if in auth2-none.c the PRIVSEP() is removed from
auth2_read_banner() then everything works fine.
Upon further analysis I came to the conclusion that
mm_answer_auth2_read_banner() will return either a banner string,
or an empty string. It will never return NULL, so presumably
mm_auth2_read_banner() will also never return NULL to its caller
in userauth_banner().
A patch will be attached. It could be better.
And a better solution is to just not point UseBanner to an non-existant file!
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2003-Sep-23  15:31 UTC
[Bug 707] missing banner file now prints empty line
http://bugzilla.mindrot.org/show_bug.cgi?id=707 ------- Additional Comments From Al.Smith at gold.net 2003-09-24 01:31 ------- Created an attachment (id=459) --> (http://bugzilla.mindrot.org/attachment.cgi?id=459&action=view) patch ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2003-Oct-07  06:50 UTC
[Bug 707] missing banner file now prints empty line
http://bugzilla.mindrot.org/show_bug.cgi?id=707
dtucker at zip.com.au changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
------- Additional Comments From dtucker at zip.com.au  2003-10-07 16:50 -------
This has been fixed in OpenBSD and will appear in -Portable's snapshots
shortly.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.