BUG? Corrupted files with ftp:// (squid-2.1.PATCH1)

From: Pål Baltzersen <pal.baltzersen@dont-contact.us>
Date: Fri, 27 Nov 1998 19:53:15 +0100

One of our users have problems with files getting corupted when downloading via Squid.
I have checked and compared with files downloaded directly with unix ftp and found that
the files differ and that the problem is (that some or all) LF are changed to CRLF:

# ls -l
total 448
-rw-rw-r-- 1 root other 108544 Nov 27 18:57 ftp.xls
-rw-rw-r-- 1 root other 108790 Nov 27 19:11 proxy.xls
# cmp ftp.xls proxy.xls
ftp.xls proxy.xls differ: char 998, line 1
Exit 1
# cp -p proxy.xls proxy.xls~
# sed 's/^M$//' < proxy.xls~ > ! proxy.xls
# ls -l
total 672
-rw-rw-r-- 1 root other 108544 Nov 27 18:57 ftp.xls
-rw-rw-r-- 1 root other 108544 Nov 27 19:40 proxy.xls
-rw-rw-r-- 1 root other 108790 Nov 27 19:11 proxy.xls~
# cmp ftp.xls proxy.xls
#

Aditional info:
squid-2.1.PATCH1/Solaris2.6/Sparc/gcc-2.7.2.3 -O3 (have had the problem since 1.1.20)
Netscape-4.x (at least 4.04 - 4.5)/WinNT4
URL: ftp://sensa@ftp.nordpool.no/Elspot/Historie/syspr98.xls (password required)
ftp.nordpool.no: 220 wwwserver Microsoft FTP Service (Version 2.0).

Is this a configurable feature, a bug in Squid, MS-FTP or Netscape?
Is there a patch or workaround?

Pål

----------------------------------------------------------------
Addr: Pål Baltzersen, ElTele Øst AS, Sandakervn. 114B, N-0483 Oslo.
Phone: +47 23 18 10 00 Direct: +47 23 18 11 74
fax: +47 23 18 10 01 Mobile: +47 93 08 11 74
mail: pb@ost.eltele.no pal.baltzersen@ost.eltele.no
Received on Fri Nov 27 1998 - 11:45:09 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:43:23 MST