Bug 92151 - Banner <file> should convert line endings
Summary: Banner <file> should convert line endings
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: xinetd
Version: 7.1
Hardware: i686
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jay Fenlason
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-06-03 13:13 UTC by John Dalbec
Modified: 2014-08-31 23:25 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2003-06-04 14:02:57 UTC
Embargoed:


Attachments (Terms of Use)

Description John Dalbec 2003-06-03 13:13:21 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2)
Gecko/20030208 Netscape/7.02

Description of problem:
Xinetd should make sure that the correct line endings are used when a banner is
transmitted.  If the banner file contains bare LF characters, they should be
converted to CRLF.  Alternatively, a warning should be added to the man page
that CRLF line endings are required by the RFCs.

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Create text file using vi.
2. Add "banner <text file>" to xinetd ftpd configuration.
3. Connect to ftp port with IBM z/OS 1.3 FTP client.

Actual Results:  Banner is transmitted as is, violating FTP protocol standards.
 The IBM z/OS 1.3 FTP client sees one long line beginning with "220-" and so
times out waiting for the next header line.

Expected Results:  Banner should be sent out with CRLF line ending characters to
respect the FTP protocol standards.  The IBM z/OS 1.3 FTP client will then see
separate lines and the final line will begin with "220 ".

Additional info:

Comment 1 Jay Fenlason 2003-06-04 14:02:57 UTC
Xinetd should not be making any changes to banner files it outputs, since it has
no knowledge of the appropriate protocol.  Instead, it is the user's
responsibility to ensure the banner file is in an appropriate format for the
specified protocol.  I have updated the xinetd CVS documentation, and the fixed
text will be included in a future release of xinetd.

Comment 2 John Dalbec 2003-06-04 15:03:29 UTC
The tcp_wrappers library converts line endings if the ": banner <directory>"
extension is used.  How is it different from xinetd in this case?


Note You need to log in before you can comment on or make changes to this bug.