summaryrefslogtreecommitdiffstats
path: root/package/htpdate/patches
diff options
context:
space:
mode:
authornico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-05-14 21:19:23 +0000
committernico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-05-14 21:19:23 +0000
commit0e293cb5c5f2638b274078d48fe6192082c24b2e (patch)
tree6dcb66e187bff00e90db8c3c98e97f17c00a579a /package/htpdate/patches
parente6a4618ce2fdc8707895de1e22b7dadfd3a8482f (diff)
Add htpdate package
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@899 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/htpdate/patches')
-rw-r--r--package/htpdate/patches/no-time-delta-check.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/package/htpdate/patches/no-time-delta-check.patch b/package/htpdate/patches/no-time-delta-check.patch
new file mode 100644
index 000000000..f45929541
--- /dev/null
+++ b/package/htpdate/patches/no-time-delta-check.patch
@@ -0,0 +1,14 @@
+--- htpdate-0.7.2-orig/htpdate.c 2005-05-05 20:53:13.000000000 +0200
++++ htpdate-0.7.2-1/htpdate.c 2005-05-07 15:31:21.000000000 +0200
+@@ -411,11 +411,8 @@
+
+ timestamp = getHTTPdate( host, port, proxy, proxyport, when );
+
+- /* Only include valid responses in timedelta[], |delta time| < year */
+- if ( labs(timestamp) < 31536000 ) {
+ timedelta[validtime] = timestamp;
+ validtime++;
+- }
+
+ /* Sleep for a while, unless we detect a time offset */
+ if ( daemonize && (timestamp == 0) )