Subject: Re: Data corruption w/ftp?
To: Nigel Reed <nigel@nelgin.nu>
From: None <jonl@yubyub.net>
List: netbsd-help
Date: 07/22/2001 17:45:17
On Sun, 22 Jul 2001, Nigel Reed wrote:
> On Sun, Jul 22, 2001 at 03:06:59PM -0500, Dave Huang wrote:
> > On Sun, 22 Jul 2001, Nigel Reed wrote:
> > > Transfer it in ascii mode, not binary.
> >
> > Why? If binary mode doesn't work, something's broken. ASCII mode is for
> > transferring ASCII files--a file full of 0s isn't what I'd consider
> > ASCII :) (although I suppose you could say it's a file full of ASCII
> > NULs :)
> Maybe you'd better file a pr then since NetBSD tends to think it is an
> ASCII file. For what it's worth, using Win2K and NetBSD 1.5W it works
> both ways. *shrug*
[snip]
No - they have nothing to do with each other. Using ASCII transfers
simply asks the client to to CR/LF translations on the file, so that
transferring a Unix text file to a Windows/DOS box doesn't confuse poor
text editors ;-)
Also, AFAIK, the conversion is done in the client code, not the server
(could be wrong here), so NetBSD's interpretation of the file doesn't come
into play.
It's gotta be something strange with my setup here - I'm now certain of
that, but I can't figure out why. It seems that the first four bytes of
the file are replaced with garbage when the file is uploaded. This is
only reproducable from my Me box.
I guess I shouldn't run Me on my girlfriend's box ;-)
-Jon