Bug 15477 - wwwstat-2.01 port is not Y2K compliant: 19 is hardcoded.
Summary: wwwstat-2.01 port is not Y2K compliant: 19 is hardcoded.
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1999-12-14 08:10 UTC by Igor Roshchin
Modified: 2003-07-17 21:40 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Igor Roshchin 1999-12-14 08:10:01 UTC
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 :)
Comment 1 Steve Price freebsd_committer freebsd_triage 1999-12-25 01:26:32 UTC
Responsible Changed
From-To: freebsd-ports->andreas

Over to port's maintainer. 

Comment 2 Igor Roshchin 2000-01-10 19:53:09 UTC
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
Comment 3 Steve Price freebsd_committer freebsd_triage 2000-05-30 00:06:59 UTC
Responsible Changed
From-To: andreas->freebsd-ports

Andreas no longer maintains this port.
Comment 4 Michael Haro freebsd_committer freebsd_triage 2001-04-03 10:51:01 UTC
Responsible Changed
From-To: freebsd-ports->demon

Over to maintainer
Comment 5 Dmitry Sivachenko freebsd_committer freebsd_triage 2003-07-03 17:43:50 UTC
Responsible Changed
From-To: demon->freebsd-ports

I do not maintain this port (anymore).
Comment 6 Greg Lewis freebsd_committer freebsd_triage 2003-07-17 21:39:23 UTC
State Changed
From-To: open->closed

I've committed a patch which manipulates the year into a 4 digit state 
and removes the hardcoded '19'.