Dear carson,
> It looks like _somebody_ needs to remember that sscanf() returns success on
> success, unlike strcasecmp().
>
> Try this:
>
> *** ftpget.c.orig Thu Aug 1 11:35:16 1996
> --- ftpget.c Thu Aug 1 11:32:52 1996
> ***************
> *** 1818,1825 ****
>
> /* try it as a DOS listing */
> if (n_tokens > 3 && p->name == NULL &&
> ! !sscanf(tokens[0], "%[-0-9]", sbuf) && /* 04-05-70 */
> ! !sscanf(tokens[1], "%[0-9:apm]", sbuf)) { /* 09:33pm */
> if (!strcasecmp(tokens[2], "<dir>")) {
> p->type = 'd';
> sprintf(sbuf, "%s %s", tokens[0], tokens[1]);
> --- 1818,1825 ----
>
> /* try it as a DOS listing */
> if (n_tokens > 3 && p->name == NULL &&
> ! sscanf(tokens[0], "%[-0-9]", sbuf) && /* 04-05-70 */
> ! sscanf(tokens[1], "%[0-9:apm]", sbuf)) { /* 09:33pm */
> if (!strcasecmp(tokens[2], "<dir>")) {
> p->type = 'd';
> sprintf(sbuf, "%s %s", tokens[0], tokens[1]);
>
I've applied this patch and removed it again because other (Unix based FTP
servers) didn't displayed right.. Squid v1.05 is complaining about
"The requested URL could not be retrieved" while it should give a listing
of files..
Cheers, Henny
-- ----------------------------------------------------------------------------- E-Mail: Henny.Bekker@cc.ruu.nl INTERNET ! Disclaimer: ruusur::henny DECnet ! The main obstacle to 012911028100::henny DATANET-1 ! progress is not http http://www.ruu.nl/personal/Henny.html ! ignorance, but the PTT: Voice: +31 30 2536971 Fax: +31 30 2531633 ! illusion of knowledge X400: /G=Henny/S=Bekker/OU=cc/O=ruu/PRMD=surf/ADMD=400net/C=nl o Paper: H.J.Bekker, Utrecht University, Computer Centre _ /- _ Po Box 80011, 3508 TA Utrecht Nederland (_) > (_) -----------------------------------------------------------------------------Received on Thu Aug 01 1996 - 13:54:50 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:32:45 MST