Contents of /trunk/logrotate/patches/logrotate-3.7.1-datehack.patch
Parent Directory | Revision Log
Revision 153 -
(show annotations)
(download)
Tue May 8 20:52:56 2007 UTC (17 years, 4 months ago) by niro
File size: 516 byte(s)
Tue May 8 20:52:56 2007 UTC (17 years, 4 months ago) by niro
File size: 516 byte(s)
-import
1 | diff -u -ruN logrotate-3.7.1.orig/logrotate.c logrotate-3.7.1/logrotate.c |
2 | --- logrotate-3.7.1.orig/logrotate.c 2004-10-19 17:41:24.000000000 -0400 |
3 | +++ logrotate-3.7.1/logrotate.c 2005-05-24 12:12:26.000000000 -0400 |
4 | @@ -1002,7 +1002,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, "bad year %d for file %s in state file %s\n", |
11 | year, argv[0], stateFilename); |
12 | fclose(f); |