Re: ftp://download.intel.com = trub!

From: Duane Wessels <wessels@dont-contact.us>
Date: Fri, 21 Mar 97 13:38:19 -0800

pete@corp.netcom.net.uk writes:

>I've noticed that this URL seems to confuse my squid 1.1.6:
>
>ftp://download.intel.com
>
>It appears to be the situation where all the ftp headers do not begin
>with "NNN-" but this was reported as fixed in the changelog for 1.1.6
>
>Could anyone comment? Thanks.

Try this:

Index: ftpget.c
===================================================================
RCS file: /surf1/CVS/squid/src/ftpget.c,v
retrieving revision 1.81.2.10
diff -w -u -r1.81.2.10 ftpget.c
--- ftpget.c 1997/03/18 17:21:09 1.81.2.10
+++ ftpget.c 1997/03/21 21:37:11
@@ -1051,7 +968,7 @@
        if (n == 0)
            quit = 1;
        else
- quit = (buf[2] >= '0' && buf[2] <= '9' && buf[3] == ' ');
+ quit = (buf[0] >= '0' && buf[0] <= '9' && buf[3] == ' ');
        if (!quit) {
            l = xmalloc(sizeof(list_t));
            if (sscanf(buf, "%3d-", &n) == 1)

Duane W.
Received on Fri Mar 21 1997 - 14:08:25 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:34:44 MST