Date: Thu, 25 Sep 1997 17:07:46 +0300 (EEST) From: "Timo J. Rinne" <tri@pooh.tky.hut.fi> To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: bin/4625: fetch(3) doesn't get asctime(3) format Message-ID: <199709251407.RAA24112@pooh.tky.hut.fi> Resent-Message-ID: <199709251410.HAA18320@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 4625 >Category: bin >Synopsis: fetch(3) doesn't get asctime(3) format >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Sep 25 07:10:00 PDT 1997 >Last-Modified: >Originator: Timo J. Rinne >Organization: PR >Release: FreeBSD 3.0-CURRENT i386 >Environment: FreeBSD-3.0-070897 >Description: Command fetch(3) gives a warning, if remote httpd gives date in headers in asctime(3) format. This is due to simple bug. >How-To-Repeat: Use httpd that uses asctime(3) format. >Fix: Simple. *** http.c Thu Sep 25 16:55:33 1997 --- http.c.orig Thu Sep 25 17:05:17 1997 *************** *** 1297,1303 **** } else if (string[3] == ' ') { /* Mon Jan 27 14:25:20 1997 */ ! if (strlen(string) < 24) return -1; string += 4; for (i = 0; i < 12; i++) { --- 1297,1303 ---- } else if (string[3] == ' ') { /* Mon Jan 27 14:25:20 1997 */ ! if (strlen(string) < 25) return -1; string += 4; for (i = 0; i < 12; i++) { And here we go. >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199709251407.RAA24112>