Subject: Data corruption w/ftp?
To: None <netbsd-help@netbsd.org>
From: None <jonl@yubyub.net>
List: netbsd-help
Date: 07/22/2001 15:14:10
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