From nobody@FreeBSD.ORG  Tue Dec 14 00:03:29 1999
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id CF9A015265; Tue, 14 Dec 1999 00:03:29 -0800 (PST)
Message-Id: <19991214080329.CF9A015265@hub.freebsd.org>
Date: Tue, 14 Dec 1999 00:03:29 -0800 (PST)
From: str@komkon.org
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@freebsd.org
Subject: wwwstat-2.01 port is not Y2K compliant: 19 is hardcoded.
X-Send-Pr-Version: www-1.0

>Number:         15477
>Category:       ports
>Synopsis:       wwwstat-2.01 port is not Y2K compliant: 19 is hardcoded.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 14 00:10:01 PST 1999
>Closed-Date:    Thu Jul 17 13:40:08 PDT 2003
>Last-Modified:  Thu Jul 17 13:40:08 PDT 2003
>Originator:     Igor Roshchin
>Release:        3-stable
>Organization:
KomKon
>Environment:
>Description:
The wwwstat-2.01 port still has not been
fixed, and is not Y2K compliant:

For example: the file "monthly":

$ArcStats = '/dc/ud/www/documentroot/Admin/stats-19' . $year .
             '/' . $LastMonth . '.wwwstats.html';

It relies on the 2-digit representation of the year (from $year),
and adds "19" before it.

I am not sure if other files in the package have similar problem.

>How-To-Repeat:
Wait until Y2K :)
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->andreas 
Responsible-Changed-By: steve 
Responsible-Changed-When: Fri Dec 24 17:26:32 PST 1999 
Responsible-Changed-Why:  
Over to port's maintainer. 

From: Igor Roshchin <str@komkon.org>
To: freebsd-gnats-submit@FreeBSD.org, str@komkon.org
Cc: andreas@FreeBSD.org
Subject: Re: ports/15477: wwwstat-2.01 port is not Y2K compliant: 19 is hardcoded.
Date: Mon, 10 Jan 2000 13:53:09 -0600

 Addition:
 
 
 It seems that the problem with "monthly" in wwwstat-2.01 port
 is a bit deeper:
 In addition to hardcoded "19", it uses Perl's $year
 which was found to have value of "100" in 2000.
 See the test output below.
 
 Regards,
 
 Igor 
 
 /t/TEST>./monthly
 Got the defaults
 Figured out that last month was Jan 100
 Successfully opened the log files
 Splitting /t/TEST/access_log
 Successfully processed the logfiles
 Deleting /t/TEST/access_log.old
 Creating monthly stats in /t/TEST/stats-19100/Jan.wwwstats.html
 Compressing last month's log
 Moving last month's log to /t/TEST/Jan100_access_log.gz
 Finished Job
 
Responsible-Changed-From-To: andreas->freebsd-ports 
Responsible-Changed-By: steve 
Responsible-Changed-When: Mon May 29 16:06:59 PDT 2000 
Responsible-Changed-Why:  
Andreas no longer maintains this port. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=15477 
Responsible-Changed-From-To: freebsd-ports->demon 
Responsible-Changed-By: mharo 
Responsible-Changed-When: Tue Apr 3 02:51:01 PDT 2001 
Responsible-Changed-Why:  
Over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=15477 
Responsible-Changed-From-To: demon->freebsd-ports 
Responsible-Changed-By: demon 
Responsible-Changed-When: Thu Jul 3 09:43:50 PDT 2003 
Responsible-Changed-Why:  
I do not maintain this port (anymore). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=15477 
State-Changed-From-To: open->closed 
State-Changed-By: glewis 
State-Changed-When: Thu Jul 17 13:39:23 PDT 2003 
State-Changed-Why:  
I've committed a patch which manipulates the year into a 4 digit state 
and removes the hardcoded '19'. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=15477 
>Unformatted:
