From owner-freebsd-ports Thu Dec 30 17:30: 4 1999 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id EB58614BFF for ; Thu, 30 Dec 1999 17:30:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id RAA77005; Thu, 30 Dec 1999 17:30:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from 24-25-220-29.san.rr.com (24-25-220-29.san.rr.com [24.25.220.29]) by hub.freebsd.org (Postfix) with ESMTP id BD0D215386 for ; Thu, 30 Dec 1999 17:28:58 -0800 (PST) (envelope-from doug@24-25-220-29.san.rr.com) Received: (from root@localhost) by 24-25-220-29.san.rr.com (8.9.3/8.8.8) id RAA68678; Thu, 30 Dec 1999 17:28:58 -0800 (PST) (envelope-from doug) Message-Id: <199912310128.RAA68678@24-25-220-29.san.rr.com> Date: Thu, 30 Dec 1999 17:28:58 -0800 (PST) From: Doug@gorean.org Reply-To: Doug@gorean.org To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/15789: [PATCH] Small Y2K patch for proftpd pre9 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 15789 >Category: ports >Synopsis: [PATCH] Small Y2K patch for proftpd pre9 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Dec 30 17:30:00 PST 1999 >Closed-Date: >Last-Modified: >Originator: Doug >Release: FreeBSD 3.3-STABLE-1127 i386 >Organization: AAAG >Environment: Any proftpd installation >Description: In addition to the recent security issues surrounding proftpd, a small Y2K issue was identified. The details can be found at the web site referenced below. It was expected that pre10 (or some other release) would have been out by now, but no such luck. >How-To-Repeat: DNA >Fix: Include the following patch as patch-ak in the proftpd port. ------------ cut here ----------- From http://www.proftpd.org/proftpd-l-archive/99-12/msg00261.html --- src/support.c.Dist Fri Oct 1 16:52:38 1999 +++ src/support.c Thu Dec 30 17:17:37 1999 @@ -512,7 +512,7 @@ time(&now); tm = *(localtime(&now)); - tm.tm_year = atoi(safe_token(&cp)) % 100; + tm.tm_year = atoi(safe_token(&cp)) - 1900; tm.tm_mon = atoi(safe_token(&cp)); tm.tm_mday = atoi(safe_token(&cp)); tm.tm_hour = atoi(safe_token(&cp)); Happy new year, Doug >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message