From owner-freebsd-bugs Thu Sep 25 07:10:04 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id HAA18326 for bugs-outgoing; Thu, 25 Sep 1997 07:10:04 -0700 (PDT) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id HAA18320; Thu, 25 Sep 1997 07:10:01 -0700 (PDT) Resent-Date: Thu, 25 Sep 1997 07:10:01 -0700 (PDT) Resent-Message-Id: <199709251410.HAA18320@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, tri@pooh.tky.hut.fi Received: from vipunen.hut.fi (root@vipunen.hut.fi [130.233.224.20]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id HAA18095 for ; Thu, 25 Sep 1997 07:07:50 -0700 (PDT) Received: from pooh.tky.hut.fi (pooh.tky.hut.fi [130.233.23.135]) by vipunen.hut.fi (8.8.7/8.8.7) with ESMTP id RAA11334 for ; Thu, 25 Sep 1997 17:07:46 +0300 Received: by pooh.tky.hut.fi (RAA24112); Thu, 25 Sep 1997 17:07:46 +0300 (EEST) Message-Id: <199709251407.RAA24112@pooh.tky.hut.fi> Date: Thu, 25 Sep 1997 17:07:46 +0300 (EEST) From: "Timo J. Rinne" Reply-To: tri@pooh.tky.hut.fi To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/4625: fetch(3) doesn't get asctime(3) format Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >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: