| 1 |
Changes in 2.0.0 |
| 2 |
---------------- |
| 3 |
|
| 4 |
The major version doesn't indicate big changes, only that htpdate is 2 decades old! |
| 5 |
|
| 6 |
- bugfix incorrect "estimated error" (relevant for "-x" option) |
| 7 |
- improvement: make all implicit conversions explicit |
| 8 |
- improvement: take network latency into account |
| 9 |
- change: log to stderr instead of stdout when using "-F" |
| 10 |
|
| 11 |
1.3.7 |
| 12 |
----- |
| 13 |
|
| 14 |
- bugfix: wrong default portnumber for proxy was used |
| 15 |
- bugfix: https://bugs.launchpad.net/ubuntu/+source/htpdate/+bug/1850740 |
| 16 |
- improvement: Avoid bouncing between upper/lower limit when (almost) in sync |
| 17 |
- improvement: Set SSL server hostname on SSL object |
| 18 |
|
| 19 |
1.3.6 |
| 20 |
----- |
| 21 |
|
| 22 |
- Fix when correcting large time offsets (bug introduced in 1.3.5) |
| 23 |
|
| 24 |
|
| 25 |
1.3.5 |
| 26 |
----- |
| 27 |
|
| 28 |
- Feature: set kernel synchronized (e.g. timedatectl will report |
| 29 |
'System clock synchronized: yes') |
| 30 |
- Improved time tuning accuracy/stability |
| 31 |
|
| 32 |
|
| 33 |
1.3.4 |
| 34 |
----- |
| 35 |
|
| 36 |
- fix small memory leak in strdup |
| 37 |
- fix free in case of DNS lookup failure |
| 38 |
- other minor updates |
| 39 |
|
| 40 |
|
| 41 |
1.3.3 |
| 42 |
----- |
| 43 |
|
| 44 |
- fix compatibility issue with uClibc |
| 45 |
- fix for time offset > 1s |
| 46 |
- additional time offset fine tuning |
| 47 |
|
| 48 |
|
| 49 |
1.3.2 |
| 50 |
----- |
| 51 |
|
| 52 |
- fine tuning time adjustment |
| 53 |
- added missing '-f' from usage |
| 54 |
- fix ntp_adjtime/adjtimex |
| 55 |
|
| 56 |
|
| 57 |
1.3.1 |
| 58 |
----- |
| 59 |
|
| 60 |
- Read/write clock driftfile (-f) has been added. |
| 61 |
- Multiple small bug fixes |
| 62 |
|
| 63 |
|
| 64 |
1.3.0 |
| 65 |
----- |
| 66 |
|
| 67 |
- This release is the biggest update in a decade |
| 68 |
- accuracy has improved with a new algorithm (bisect) |
| 69 |
- usage of '-p' option has change, '-p 9' allows accuracy in the range of ~10 ms |
| 70 |
- removed '-b' option, burst mode |
| 71 |
- HTTPS support has been added (no certificate validation!) |
| 72 |
|
| 73 |
|
| 74 |
1.2.4 |
| 75 |
----- |
| 76 |
|
| 77 |
- Several updates/fixes from fork maintained by Angelo Compagnucci |
| 78 |
- https://github.com/angeloc/htpdate |
| 79 |
- Added foreground '-F' (thanks to larsluthman) |
| 80 |
- An incorrect drop privileges fix |
| 81 |
- Support for multiple verbose/debug levels with -dd and -ddd |
| 82 |
- Use http_proxy environment variable |
| 83 |
- Added '-n' to ignore this environment variable |
| 84 |
- Replaced deprecated asctime(), gettimeofday(), timegm() |
| 85 |
- Removed the use of mktime() |
| 86 |
- Removed the vim modeline formatting |
| 87 |
|
| 88 |
|
| 89 |
1.2.3 |
| 90 |
----- |
| 91 |
|
| 92 |
- Support URL path to be included, hostname/path, e.g. htpdate www.example.com/htpdate.html |
| 93 |
- Included several fixes as used in Chromium OS (thanks to Mike Frysinger) |
| 94 |
- Release on github |
| 95 |
- Bug fix: dropping privileges, when not specified |
| 96 |
|
| 97 |
|
| 98 |
1.2.2 |
| 99 |
----- |
| 100 |
|
| 101 |
- Doc change only (removed reference to FreeBSD and Linux) |
| 102 |
|
| 103 |
|
| 104 |
1.2.1 |
| 105 |
----- |
| 106 |
|
| 107 |
- Fix initialization of strptime() |
| 108 |
|
| 109 |
|
| 110 |
1.2.0 |
| 111 |
----- |
| 112 |
|
| 113 |
- Fix for port numbers that were not used in daemon mode (thanks to Matthew Jones) |
| 114 |
- Discard the use of local time offset, because it causes incorrect synchronisation when TZDATA isn't correct, https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=876687 (thanks for Mert Dirik) |
| 115 |
|
| 116 |
|
| 117 |
1.1.3 |
| 118 |
----- |
| 119 |
|
| 120 |
- Fixed a year 2038 issue on 32-bit systems (thanks to Ansel Consulting) |
| 121 |
|
| 122 |
|
| 123 |
1.1.2 |
| 124 |
----- |
| 125 |
|
| 126 |
- Security fix: setegid wasn't always applied |
| 127 |
- Fixed compiler warning 'ignoring return value' for recent gcc versions |
| 128 |
|
| 129 |
|
| 130 |
1.1.1 |
| 131 |
----- |
| 132 |
|
| 133 |
- Fixed out of bound issue and a missing null-terminated string (thanks to Tobias Stöckmann) |
| 134 |
|
| 135 |
|
| 136 |
1.1.0 |
| 137 |
----- |
| 138 |
|
| 139 |
- Removed Debian and RPM specific information |
| 140 |
- Fixed manpage issues (thanks to Eriberto) |
| 141 |
|
| 142 |
|
| 143 |
1.0.7 |
| 144 |
----- |
| 145 |
|
| 146 |
- Fixed an incorrect bug fix in 1.0.6. |
| 147 |
|
| 148 |
|
| 149 |
1.0.6 |
| 150 |
----- |
| 151 |
|
| 152 |
- Bug fix for https://bugs.gentoo.org/show_bug.cgi?id=350685 |
| 153 |
(Thanks Diego Augusto Molina for the bug report and Pavel Kazakov for |
| 154 |
debugging) |
| 155 |
|
| 156 |
|
| 157 |
1.0.5 |
| 158 |
----- |
| 159 |
- Change of e-mail/website |
| 160 |
- Fix for debian build |
| 161 |
|
| 162 |
|
| 163 |
1.0.4 |
| 164 |
----- |
| 165 |
- Fixed a memory leak (reported and fixed by Andreas Bohne-Lang) |
| 166 |
|
| 167 |
|
| 168 |
1.0.3 |
| 169 |
----- |
| 170 |
|
| 171 |
- Fixed logic error... 1.0.2 is broken :( |
| 172 |
|
| 173 |
|
| 174 |
1.0.2 |
| 175 |
----- |
| 176 |
|
| 177 |
- Fixed a buffer overflow when time offset gets too large |
| 178 |
https://dev.openwrt.org/cgi-bin/trac.fcgi/ticket/3940 |
| 179 |
|
| 180 |
|
| 181 |
1.0.1 |
| 182 |
----- |
| 183 |
|
| 184 |
- Added "burst mode" (-b) to enhance accuracy. |
| 185 |
- Extended debug output |
| 186 |
- Removed potential buffer overflows vulnerabilities. |
| 187 |
- Replaced usleep by nanosleep (which is more portable). |
| 188 |
- Included debian package. |
| 189 |
|
| 190 |
|
| 191 |
1.0.0 |
| 192 |
----- |
| 193 |
|
| 194 |
- Cleanup/simplified the code. |
| 195 |
- Again a more robust implementation of the "-p" (precision) switch. |
| 196 |
|
| 197 |
|
| 198 |
0.9.3 |
| 199 |
----- |
| 200 |
|
| 201 |
- Bug fixes: poll loop could be become close to zero in case of a "connection |
| 202 |
failed". Sleeptime wasn't correct in case all hosts fail. |
| 203 |
- Use more "sane" minsleep and maxsleep values. |
| 204 |
|
| 205 |
|
| 206 |
0.9.2 |
| 207 |
----- |
| 208 |
|
| 209 |
- The use of the ntp_adjtime system call is now optional. The clock |
| 210 |
frequency will be adjusted when using the "-x" switch and the systematic |
| 211 |
drift will be compensated. Works only in daemon mode. |
| 212 |
|
| 213 |
|
| 214 |
0.9.1 |
| 215 |
----- |
| 216 |
|
| 217 |
- Htpdate can drop root privileges and run as a restricted user. |
| 218 |
- Drift calculation starts now after first time correction. |
| 219 |
|
| 220 |
|
| 221 |
0.9.0 |
| 222 |
----- |
| 223 |
|
| 224 |
- Mostly code cleanup |
| 225 |
- Changed "char" variables into "int", which should be more efficient |
| 226 |
- Changed the qsort routine, into an insertion sort. Quicksort is |
| 227 |
kind of overkill for such small lists. |
| 228 |
- Debug mode is allowed in daemon mode. |
| 229 |
|
| 230 |
|
| 231 |
0.8.8 |
| 232 |
----- |
| 233 |
|
| 234 |
- Speeded up the poll cycle loop, once a time offset has been detected. |
| 235 |
- Added systematic drift to the syslog logging (daemon only). |
| 236 |
The "adjtimex_parameters.sh" script may help to reduce the drift of your |
| 237 |
system clock. |
| 238 |
- Changed "precision" from micro into milliseconds. |
| 239 |
- Changed manpage directory from /usr/man into /usr/share/man. |
| 240 |
- HTTP/1.1 has become the default |
| 241 |
|
| 242 |
|
| 243 |
0.8.7 |
| 244 |
----- |
| 245 |
|
| 246 |
- Bug fix: with precision set, the time could only be adjusted |
| 247 |
negative (slow down). |
| 248 |
- Fixed undesired effects in (rare) cases when using only a few servers. |
| 249 |
- Exit code changed to 1 if no server was found (requested by Supernaut). |
| 250 |
|
| 251 |
|
| 252 |
0.8.6 |
| 253 |
----- |
| 254 |
|
| 255 |
- Reintroduction of the "-p" switch. The "precision" determines more accurate |
| 256 |
when a time adjustment is needed. The implementation of precision is much |
| 257 |
beter than the one in the past. |
| 258 |
|
| 259 |
|
| 260 |
0.8.5 |
| 261 |
----- |
| 262 |
|
| 263 |
- Changed the variable type of "param" from char into int (thanks to |
| 264 |
Arnaud Mazin). GCC 3.4.x is less forgiving than older versions. |
| 265 |
- Made compare function for qsort more robust (avoiding overflow). |
| 266 |
|
| 267 |
|
| 268 |
0.8.4 |
| 269 |
----- |
| 270 |
|
| 271 |
- Finaly added IPv6 support! |
| 272 |
- If you would lose internet connectivity, htpdate would flood the system |
| 273 |
(CPU and log). A patch submitted by Peter Surda, has been included. |
| 274 |
- Removed -0 switch (HTTP/1.0), since this is the default anyway. |
| 275 |
|
| 276 |
|
| 277 |
0.8.3 |
| 278 |
----- |
| 279 |
|
| 280 |
- Fixed that "when" wasn't properly initialized in every poll cycle. This |
| 281 |
bug fix reduces jitter when system time is close to the correct time. |
| 282 |
- Added missing "-t" switch to the manpage. |
| 283 |
- Added warning message if more than 16 servers are specified. |
| 284 |
- Htpdate double forks now, like a proper daemon :) |
| 285 |
- vim setting are added to the source (set ts=4) |
| 286 |
|
| 287 |
|
| 288 |
0.8.2 |
| 289 |
----- |
| 290 |
|
| 291 |
- Fixed a major bug in offset calculation (caused by changing the rtt type |
| 292 |
from double to unsigned long) |
| 293 |
|
| 294 |
|
| 295 |
0.8.1 (broken) |
| 296 |
-------------- |
| 297 |
|
| 298 |
- Correction install paths in Makefile, added uninstall option |
| 299 |
- Added "-t" switch, which disables time sanity checking (requested for |
| 300 |
devices, like supported by openwrt, which boot/startup at "epoch" time) |
| 301 |
|
| 302 |
|
| 303 |
0.8.0 |
| 304 |
----- |
| 305 |
|
| 306 |
- Lots of code clean up, eg.: |
| 307 |
- compiles with the -ansi switch (for better portability, but only |
| 308 |
tested on Linux and FreeBSD) |
| 309 |
- Compiles with Tiny C Compiler (tcc) and Intel C compiler (icc) |
| 310 |
- Restored compatibility with FreeBSD (timezone calculation). |
| 311 |
- A second poll is made if a time offset has been detected. |
| 312 |
- Removed the switches "-t" and "-x". In daemon mode htpdate will only adjust |
| 313 |
time. With the "-s" switch htpdate will set the time once at startup and |
| 314 |
after that only smooth adjusts are made. |
| 315 |
- Added "-l" switch, which enables logging to syslog in non-daemon mode. |
| 316 |
Convinient if htpdate is used from cron. |
| 317 |
- Added "-0" to make an HTTP/1.0 request and "-1" for HTTP/1.1 |
| 318 |
|
| 319 |
|
| 320 |
0.7.2 |
| 321 |
----- |
| 322 |
|
| 323 |
- Minor bug fix. When running in daemon mode TCP connections weren't cleaned up |
| 324 |
properly (sockets remained in CLOSE_WAIT status). |
| 325 |
|
| 326 |
|
| 327 |
0.7.1 |
| 328 |
----- |
| 329 |
|
| 330 |
- Bug fix. Poll cycle could become very very short (seconds...) in some |
| 331 |
cases. |
| 332 |
|
| 333 |
|
| 334 |
0.7.0 |
| 335 |
----- |
| 336 |
|
| 337 |
- The polling mechanisme has been improved once more :) |
| 338 |
As of this version polls are also spread within the polling cycle. |
| 339 |
This way a time offset will be detected earlier, without increasing the |
| 340 |
polling frequency. |
| 341 |
- Sleeptime isn't writen to syslog anymore, only time adjustments |
| 342 |
- Previous versions of htpdate tried to close a already closed HTTP/1.0 |
| 343 |
session. |
| 344 |
- The rpm version doesn't override the init-script anymore |
| 345 |
|
| 346 |
|
| 347 |
0.6.2 |
| 348 |
----- |
| 349 |
|
| 350 |
- Bug fix, time wasn't correct if 'timeavg' was negative... |
| 351 |
|
| 352 |
|
| 353 |
0.6.1 |
| 354 |
----- |
| 355 |
|
| 356 |
- Code clean up, use global variable 'timezone' |
| 357 |
|
| 358 |
|
| 359 |
0.6 |
| 360 |
--- |
| 361 |
|
| 362 |
- New poll schedule mechanisme has been introduced! |
| 363 |
This results in a better spreading of the polls in time to |
| 364 |
gain some extra accuracy. |
| 365 |
- Removed the -p (precision) flag, because it has become obsolete with |
| 366 |
the new poll scheduling mechanisme. |
| 367 |
- Extended 'debug mode' output with round trip time (rtt) information. |
| 368 |
- Sleeptime parameters are no longer in seconds, but in 2^n seconds. |
| 369 |
|
| 370 |
|
| 371 |
0.5 |
| 372 |
--- |
| 373 |
|
| 374 |
- Added relevant header files, so gcc -Wall compiles without warnings. |
| 375 |
- Added -p switch, to set the precision of htpdate. The polling rate |
| 376 |
is affected by this switch (high precision -> more frequent polling). |
| 377 |
|
| 378 |
|
| 379 |
0.4 |
| 380 |
--- |
| 381 |
|
| 382 |
- Spread the individual time polls better, to gain accuracy with |
| 383 |
a small number of web servers as source |
| 384 |
- Added debug mode, so you can value the quality of the timestamps |
| 385 |
from web servers |
| 386 |
- Minor correction on HEAD request (removed max-age=0) |
| 387 |
- pid file is created |
| 388 |
- Added htpdate init script |
| 389 |
|
| 390 |
|
| 391 |
0.3 |
| 392 |
--- |
| 393 |
|
| 394 |
- Run htpdate as a daemon |
| 395 |
- automatic set/adjust time, based upon offset |
| 396 |
- automatic poll interval |
| 397 |
- Added manpage |
| 398 |
- Added RPM |
| 399 |
- Minor bug fixes |
| 400 |
|
| 401 |
|
| 402 |
0.2 |
| 403 |
--- |
| 404 |
|
| 405 |
- Htpdate can set or adjust time smoothly now, without calling external |
| 406 |
programs |
| 407 |
|
| 408 |
|
| 409 |
0.1 |
| 410 |
--- |
| 411 |
|
| 412 |
- Initial release. Htpdate extracts the raw timestamp from a webserver. |