Contents of /trunk/logrotate/patches/logrotate-3.7.7-datehack.patch
Parent Directory
|
Revision Log
Revision 703 -
(show annotations)
(download)
Tue Oct 14 22:21:29 2008 UTC (15 years, 7 months ago) by niro
File size: 511 byte(s)
Tue Oct 14 22:21:29 2008 UTC (15 years, 7 months ago) by niro
File size: 511 byte(s)
-re-diffed for 3.7.7
1 | diff -Naur logrotate-3.7.7/logrotate.c logrotate-3.7.7-magellan/logrotate.c |
2 | --- logrotate-3.7.7/logrotate.c 2008-05-14 12:31:35.000000000 +0200 |
3 | +++ logrotate-3.7.7-magellan/logrotate.c 2008-10-14 23:47:04.000000000 +0200 |
4 | @@ -1443,7 +1443,7 @@ |
5 | } |
6 | |
7 | /* Hack to hide earlier bug */ |
8 | - if ((year != 1900) && (year < 1996 || year > 2100)) { |
9 | + if ((year != 1900) && (year < 1970 || year > 2100)) { |
10 | message(MESS_ERROR, |
11 | "bad year %d for file %s in state file %s\n", year, |
12 | argv[0], stateFilename); |