Subject: Re: Data corruption w/ftp?
To: None <jonl@yubyub.net>
From: Nigel Reed <nigel@nelgin.nu>
List: netbsd-help
Date: 07/22/2001 14:26:09
Transfer it in ascii mode, not binary.
ftp> asc
200 Type set to A.
ftp> get test
200 PORT command successful.
150 Opening ASCII mode data connection for 'test' (102400 bytes).
226 Transfer complete.
ftp: 102400 bytes received in 0.25Seconds 409.60Kbytes/sec.
ftp> put test test.1
200 PORT command successful.
150 Opening ASCII mode data connection for 'test.1'.
226 Transfer complete.
ftp: 102400 bytes sent in 0.07Seconds 1462.86Kbytes/sec.
ftp>
bash-2.05$ sum test test.1
0 100 test
0 100 test.1
Regards
Nigel
On Sun, Jul 22, 2001 at 03:14:10PM -0400, jonl@yubyub.net wrote:
> This is a bit strange. This is on 1.5/i386.
>
> First, I create a file:
>
> % dd if=/dev/zero of=./test bs=1k count=100
> 100+0 records in
> 100+0 records out
> 102400 bytes transferred in 1 secs (102400 bytes/sec)
> %
>
> Now, I use my girlfriend's Windows Me box to retrieve and put the file:
>
> ftp> bin
> 200 Type set to I.
> ftp> get test
> 200 PORT command successful.
> 150 Opening BINARY mode data connection for 'test' (102400 bytes).
> ##################################################
> 226 Transfer complete.
> ftp: 102400 bytes received in 3.46Seconds 29.60Kbytes/sec.
> ftp> put test test2
> 200 PORT command successful.
> 150 Opening BINARY mode data connection for 'test2'.
> ##################################################
> 226 Transfer complete.
> ftp: 102400 bytes sent in 0.17Seconds 602.35Kbytes/sec.
> ftp>
>
> Okay, now let's take a look at the local files again. test and test2
> should be identical, right?
>
> % diff test test2
> Binary files test and test2 differ
> % sum test
> 0 100 test
> % sum test2
> 33304 100 test2
> %
>
> Ummmm... hmmmm... There is some garbage at the beginning of the new file.
>
> % head test
> % head test2
> jI%
>
> Strange, no? Is this NetBSD or Windows Me? Going locally doesn't seem to
> reproduce the problem, so I'd say it was Windows Me....
>
> Anyone seen this before?
>
> Please CC - I'm not on the list at this address.
>
> -Jon
>
--