home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / protocol / tcpip / 3871 < prev    next >
Encoding:
Internet Message Format  |  1992-07-28  |  1.7 KB

  1. Path: sparky!uunet!olivea!decwrl!pa.dec.com!ninja!zowie.zso.dec.com!ridder
  2. From: ridder@zso.dec.com (Hans Ridder)
  3. Newsgroups: comp.protocols.tcp-ip
  4. Subject: Problem with ASCII mode FTP
  5. Message-ID: <1992Jul28.185832.1348@ninja.zso.dec.com>
  6. Date: 28 Jul 92 18:58:32 GMT
  7. Sender: news@ninja.zso.dec.com (USENET News System)
  8. Organization: Digital Equipment Corporation - DECwest Engineering
  9. Lines: 26
  10. Originator: ridder@zowie.zso.dec.com
  11. Nntp-Posting-Host: zowie.zso.dec.com
  12.  
  13. I have a question regarding the use of CR/NUL sequences in ASCII mode
  14. FTP transfers.  One particular PC implementation of FTP, when sending,
  15. is converting a bare CR (intending to "overprint") into a CR/NUL.  When
  16. received by the ftpd on Ultrix, the NUL is not stripped.  This NUL then
  17. causes a problem when the file is printed, but that's another issue.
  18.  
  19. Checking the FTP RFC, it says that ASCII mode should use the TELNET NVT
  20. protocol.  The TELNET RFC says that bare CR's should never appear in the
  21. data stream, that when sending they should be converted to CR/NUL, and
  22. back to local format on receive.  The FTP RFC talks quite a bit about
  23. various aspects of CR/LF processing, but never mentions CR/NUL.
  24.  
  25. From all this reading, I conclude that the Ultrix ftpd (and possibly
  26. ftp) is broken, and should be stripping the NUL.  Checking the source
  27. code revealed there is code to strip the NUL, but it is #ifdef'd out.
  28. Are all BSD derived implementations the same?
  29.  
  30. Should this ftpd be stripping the NUL following the CR, or not?  I say
  31. yes, however I wanted to check with all you for any folklore and
  32. opinions on the issue.  Thanks!
  33.  
  34. -hans
  35. -- 
  36.   Hans-Gabriel Ridder                Digital DECwest Engineering
  37.   ridder@rust.zso.dec.com            Bellevue, Washington, USA
  38.   {pacbell,pyramid,uunet}!rust.zso.dec.com!ridder
  39.