--- "Alexander V. Lukyanov" <[EMAIL PROTECTED]> wrote:
> On Mon, Feb 17, 2003 at 11:12:56PM -0800, Maarten Boekhold wrote:
> > But when it lists the individual sub-directories, it uses:
> >
> > ---> GET ftp://sunsite.dk/%2Fmirrors/cygwin/xfree%0D/ HTTP/1.1
> >
> > Notice the %0D in the directory name...
> >
> > Any idea why this is there and how to get rid of it?

I've run lftp through truss (solaris version of strace), and I can see that my
proxy (or maybe the ftp server, not sure) returns the directory listing in
windows 'encoding', i.e. 0x0A 0x0D newlines, and lftp fails to strip off the
0x0D character, causing it to try to create files with names such as (in C
string syntax): "setup.exe\n\r" (or setup.exe 0x0A 0x0D)... which apparently
(and not surprising) really confuses Solaris. Not to mention that it also sends
those filenames back to the ftp server, which also gets confused.

Can somebody tell me where in the source lftp retrieves these directory
listings? Maybe I can patch it to strip off any trailing 0x0A and 0x0D
characters...

Maarten


__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

Reply via email to