From doug@24-25-220-29.san.rr.com  Thu Dec 30 17:28:59 1999
Return-Path: <doug@24-25-220-29.san.rr.com>
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 <FreeBSD-gnats-submit@freebsd.org>; 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
Sender: doug@24-25-220-29.san.rr.com
Reply-To: Doug@gorean.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: [PATCH] Small Y2K patch for proftpd pre9
X-Send-Pr-Version: 3.2

>Number:         15789
>Category:       ports
>Synopsis:       [PATCH] Small Y2K patch for proftpd pre9
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    mharo
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 30 17:30:00 PST 1999
>Closed-Date:    Fri Dec 31 10:29:39 PST 1999
>Last-Modified:  Fri Dec 31 10:30:01 PST 1999
>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:
Responsible-Changed-From-To: freebsd-ports->mharo 
Responsible-Changed-By: steve 
Responsible-Changed-When: Thu Dec 30 17:35:27 PST 1999 
Responsible-Changed-Why:  
Over to port's maintainer. 
State-Changed-From-To: open->closed  
State-Changed-By: cpiazza 
State-Changed-When: Fri Dec 31 10:29:39 PST 1999 
State-Changed-Why:  
Patch already included in patch-ap 
>Unformatted:
