Bug 31291

Summary: newsyslog dealing with daylight savings time
Product: Base System Reporter: jonny <jonny>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.4-STABLE   
Hardware: Any   
OS: Any   

Description jonny 2001-10-15 17:50:00 UTC
Default newsyslog.conf includes the following line:

/var/log/maillog                        644  7     *    @T00  Z

When the local region enters daylight savings time, the first day
does not have the first hour, so such hour is invalid.

I suppose a similar problem will happen at daylight savings end.

Fix: 

Options:

- Fix newsyslog to detect daylight savings start/end.

- Fix mktime(3) to return a specific error for daylight savings
  time inexistence.

- As a simple and dirty workaround, just change newsyslog.conf.  ;-)

Sorry no patches.
How-To-Repeat: 
Simulate a first day of a daylight savings station, and run newsyslog.
Comment 1 Doug Barton freebsd_committer freebsd_triage 2001-10-15 23:41:52 UTC
State Changed
From-To: open->closed


Your suggestion of making newsyslog more specific in regards to times 
to rotate crucial logs is the correct one. Please search the mail 
archives for copious discussion about why this problem is also impossible 
to solve in a manner that pleases everyone for cron.