Date: Thu, 30 Dec 1999 17:28:58 -0800 (PST) From: Doug@gorean.org To: FreeBSD-gnats-submit@freebsd.org Subject: ports/15789: [PATCH] Small Y2K patch for proftpd pre9 Message-ID: <199912310128.RAA68678@24-25-220-29.san.rr.com>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199912310128.RAA68678>