Bug 1382 - FreeBSD has minor year 2000 problem in distr /etc/rc.local
Summary: FreeBSD has minor year 2000 problem in distr /etc/rc.local
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: conf (show other bugs)
Version: 2.1-STABLE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1996-07-13 16:50 UTC by Sean Kelly
Modified: 1996-10-24 10:44 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 Sean Kelly 1996-07-13 16:50:01 UTC
        The sed script in /etc/rc.local that builds the host/kernel ID line
        for the message of the day relies on the year not going past 1999.
        When the year passes 1999, the ID line is malformed.

Fix: 

Change the regular expression to match four digits instead of 199
        followed by any digit.  Other, more reliable expressions are possible.
How-To-Repeat: 
        Wait until 2000.  Reboot your system.  See /etc/motd.
Comment 1 scrappy freebsd_committer freebsd_triage 1996-10-23 05:36:53 UTC
State Changed
From-To: open->feedback


Confirm Status 
Comment 2 scrappy freebsd_committer freebsd_triage 1996-10-24 10:42:58 UTC
State Changed
From-To: feedback->closed


Fixed in Rev 1.21 of etc/rc.local