[Bug 1750] New: Sftp hangs if stderr is used.

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Thu Apr 8 20:02:37 EST 2010


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

           Summary: Sftp hangs if stderr is used.
           Product: Portable OpenSSH
           Version: 5.4p1
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: sshd
        AssignedTo: unassigned-bugs at mindrot.org
        ReportedBy: jchadima at redhat.com


According to SSH File Transfer Protocol draft-ietf-secsh-filexfer-13
the usage of stderr may not harm the transfer. 
The chapter 3.1 says: 

"Data sent on stderr by the server SHOULD be considered free format 
debug or supplemental error information, and MAY be displayed to the
user." 

Actually any try to write to stderr causes immediate server hangup.

The test case is use bash as the login shell of the user and add line
echo "Hello" >&2
into ~/.bashrc

In the openssh with session.c before version 1.237 it works, later it
hangs.

-- 
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list