diff options
author | Nicolas Thill <nico@openwrt.org> | 2005-05-14 21:19:23 +0000 |
---|---|---|
committer | Nicolas Thill <nico@openwrt.org> | 2005-05-14 21:19:23 +0000 |
commit | 941c554fdf2e0c5a168ad3907fd99007a56effcf (patch) | |
tree | 475deb526a927942f3e19c480e7e0442c065e585 /openwrt/package/htpdate/patches | |
parent | 02fe2faa39be8225b43c790d163ebcbb4d3fa56c (diff) | |
download | mtk-20170518-941c554fdf2e0c5a168ad3907fd99007a56effcf.zip mtk-20170518-941c554fdf2e0c5a168ad3907fd99007a56effcf.tar.gz mtk-20170518-941c554fdf2e0c5a168ad3907fd99007a56effcf.tar.bz2 |
Add htpdate package
SVN-Revision: 899
Diffstat (limited to 'openwrt/package/htpdate/patches')
-rw-r--r-- | openwrt/package/htpdate/patches/no-time-delta-check.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/openwrt/package/htpdate/patches/no-time-delta-check.patch b/openwrt/package/htpdate/patches/no-time-delta-check.patch new file mode 100644 index 0000000..f459295 --- /dev/null +++ b/openwrt/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) ) |