summaryrefslogtreecommitdiffstats
path: root/openwrt/package/logrotate/patches/logrotate-3.7.1-datehack.patch
diff options
context:
space:
mode:
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-02-15 15:36:28 +0000
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-02-15 15:36:28 +0000
commit687d0b8c9fc71895d397ad52f33c9d45fedfb7af (patch)
tree0f96c8dfae1cfee3fe75c1c3dcd810601191203c /openwrt/package/logrotate/patches/logrotate-3.7.1-datehack.patch
parent335718dfdc786897a06bd6a2fed8e89688129b15 (diff)
Added logrotate, fixed CP call in httping, added bind splitting, thanks to Sébastien Bourgasser
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@3243 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/package/logrotate/patches/logrotate-3.7.1-datehack.patch')
-rw-r--r--openwrt/package/logrotate/patches/logrotate-3.7.1-datehack.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/openwrt/package/logrotate/patches/logrotate-3.7.1-datehack.patch b/openwrt/package/logrotate/patches/logrotate-3.7.1-datehack.patch
new file mode 100644
index 000000000..69121aafa
--- /dev/null
+++ b/openwrt/package/logrotate/patches/logrotate-3.7.1-datehack.patch
@@ -0,0 +1,12 @@
+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 @@
+ }
+
+ /* 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);