[packages] logrotate: update to v3.7.8

git-svn-id: svn://svn.openwrt.org/openwrt/packages@17879 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nico
2009-10-05 13:28:31 +00:00
parent c9906a4400
commit fd7667f619
7 changed files with 42 additions and 546 deletions

View File

@ -1,12 +1,11 @@
diff -u -ruN logrotate-3.7.1.orig/logrotate.c logrotate-3.7.1/logrotate.c
--- logrotate-3.7.1.orig/logrotate.c 2004-10-19 17:41:24.000000000 -0400
+++ logrotate-3.7.1/logrotate.c 2005-05-24 12:12:26.000000000 -0400
@@ -1002,7 +1002,7 @@
--- a/logrotate.c
+++ b/logrotate.c
@@ -1505,7 +1505,7 @@ static int readState(char *stateFilename
}
/* Hack to hide earlier bug */
- if ((year != 1900) && (year < 1996 || year > 2100)) {
+ if ((year != 1900) && (year < 1970 || year > 2100)) {
message(MESS_ERROR, "bad year %d for file %s in state file %s\n",
year, argv[0], stateFilename);
fclose(f);
message(MESS_ERROR,
"bad year %d for file %s in state file %s\n", year,
argv[0], stateFilename);