[packages] logrotate: update to v3.7.8
[packages.git] / utils / logrotate / patches / 002-datehack.patch
1 --- a/logrotate.c
2 +++ b/logrotate.c
3 @@ -1505,7 +1505,7 @@ static int readState(char *stateFilename
4         }
5  
6         /* Hack to hide earlier bug */
7 -       if ((year != 1900) && (year < 1996 || year > 2100)) {
8 +       if ((year != 1900) && (year < 1970 || year > 2100)) {
9             message(MESS_ERROR,
10                     "bad year %d for file %s in state file %s\n", year,
11                     argv[0], stateFilename);