chiark / gitweb /
Portability: Fix assumption about read() and write() on connecting sockets
[adns.git] / changelog
1 adns (1.5.1~~) unstable; urgency=low
2
3   * Portability fix for systems where socklen_t is bigger than int.
4   * Fix for malicious optimisation of memcpy in test suite, which
5     causes failure with gcc-4.1.9 -O3.  See Debian bug #772718.
6   * Fix TCP async connect handling.  The bug is hidden on Linux and on most
7     systems where the nameserver is on localhost.  If it is not hidden,
8     adns's TCP support is broken unless adns_if_noautosys is used.
9
10  --
11
12 adns (1.5.0) UPSTREAM; urgency=low
13
14   * Release 1.5.0.  No changes since 1.5.0~rc1.
15
16  -- Ian Jackson <ijackson@chiark.greenend.org.uk>  Sun, 26 Oct 2014 14:57:10 +0000
17
18 adns (1.5.0~rc1) UPSTREAM; urgency=low
19
20   ABI/API changes:
21   * Provide adns_qf_cname_strict flag, currently ignored because it's the
22     default.  This will allow us to make this not the default in the future
23     while retaining forward and backward API and ABI compatibility.
24   * Add `sizeforce' enum member value to force enum types in the APIs to be
25     big (which will avoids theoretical future ABI-incompatibility).
26   * Reject unknown flags passed by our caller.  This will make it ABI-safe
27     (although not ABI-backward-compatible) to add new flags in the future,
28     as newer clients running against this old library will get ENOSYS.
29
30   resolv.conf parsing:
31   * Support `adns_ignoreunkcfg' resolv.conf option to ignore unknown
32     options and keywords in resolv.conf.
33   * Ignore various BIND9 resolv.conf keywords and options.
34   * Fix resolv.conf option word splitting.
35
36   Tests, build system, coding style, etc.:
37   * Test cases show rrtype flag values in hex.
38   * Parallelise `make check'.
39   * Make vbuf__append_quoted1035 no longer extern (there are no out-of-file
40     callers).
41   * Remove all RCSids.
42   * When releasing, check that the `make dist' tarball is identical to git.
43     And provide a test mode for the RELEASE-CHECKLIST doc/script.
44   * Add `make dist' tarball signature to .gitignore.
45   * More correctly and effectively work around bugs in make (Debian #4073,
46     #756123) affecting regress.
47
48  -- Ian Jackson <ijackson@chiark.greenend.org.uk>  Sun, 26 Oct 2014 13:24:00 +0000
49
50 adns (1.5.0~rc0) UPSTREAM; urgency=low
51
52   New features:
53   * Support for queries about IPv6 data in all applicable adns
54     query types (including AAAA, PTR, and adns_r_addr queries).
55     (Thanks very much to Mark Wooding.)
56   * Support for transport over IPv6.  (Thanks to Mark Wooding again.)
57   * adns_addr2text and adns_text2addr: Convenient functions for
58     converting between addresses and address literals.
59
60   Bugfixes:
61   * Fix a crashing bug in adnslogres.  (Debian#392102.)
62   * Do all checks of checked PTR owner name before actually sending the
63     query, and reject IPv4 PTR owner names whose labels have leading zero
64     digits or values >255.
65
66   Build system fixes and improvements:
67   * `make clean' removes the pipes.
68   * Work around bugs in make (Debian #4073, #756123) affecting regress.
69   * Do not include Makefile and src/config.h in distribution tarball.
70
71   Regression test debugging improvements:
72   * Provide gdbwrap convenience script.
73   * Honour ADNS_TEST_DEBUG env. var.  (Mark Wooding.)
74
75   Other improvements:
76   * Licence changed to GPLv3 (still LGPLv2 for adns.h).
77   * Source code cleanups.  (Some from Mark Wooding.)
78   * Now in git.
79   * Documentation and webpage updates.
80
81  -- Ian Jackson <ijackson@chiark.greenend.org.uk>  Mon, 20 Oct 2014 01:29:50 +0100
82
83 adns (1.4); urgency=low
84
85   Improvements for multithreaded programs:
86   * New documentation comment in adns.h explaining thread guarantees
87     (or lack of them), replaces `single-threaded' note at the top.
88   * Fix string conversion of adns_r_addr not to use a static buffer
89     (function csp_addr) so as to make thread promise true.
90   * Make an internal variable const-correct (expectdomain in pa_ptr).
91
92  -- Ian Jackson <ian@davenant.greenend.org.uk>  Tue, 17 Oct 2006 17:05:08 +0100
93
94 adns (1.3); urgency=low
95
96   Portability fixes:
97   * Cast ptrdiff_t to int for %.*s length in adnsheloex and adnslogres,
98     as is required.  (Report from Jim Meyering.)
99   * In configure.in, quote macro name argument to define() to
100     suppress spurious autoconf error.  (Report from Mihai Ibanescu.)
101   * Use autoconf's values for {bin,lib,include}dir rather than inventing
102     our own from @exec_prefix@, making configure --libdir work.
103     (Patch from Mihai Ibanescu.)
104   * Remove spurious `_' from {bin,lib,include}dir Makefile variables.
105     (Report from Mihai Ibanescu.)
106   * Do away with `mismatch' variable in parse.c:adns__findrr_anychk so that
107     overzealous GCC cannot complain about members of eo_fls being
108     uninitialised.  (Report from Jim Meyering.)
109
110  -- Ian Jackson <ian@davenant.greenend.org.uk>  Tue,  6 Jun 2006 20:22:30 +0100
111
112 adns (1.2); urgency=medium
113
114   New features:
115   * Support for SRV RRs.
116   * Support for unknown RR types (according to RFC3597) via adns_r_unknown.
117   * Allow `;'-comments in resolv.conf (report from Colin Charles).    
118   * New adnsheloex client courtesy of Tony Finch.
119   * New adns_init_logfn etc. for having logging use a callback function.
120
121   Bugfixes:
122   * Fix error in prototype in definition of adns__parse_domain.
123   * Add missing ENOTSOCK to hcommon.c.m4 (was already in hcommon.c!)
124
125   Portability fixes prompted by Bernd Eckenfels, the Debian maintainer:
126   * Correct type of various printf arguments: ptrdiff_t != int.
127   * Do not print size of leaked blocks of memory (this causes
128     a spurious regression test failure on some platforms).
129   * Provide adns_if_none and adns_qf_none (which will help with compilers
130     which complain about plain `0' being passed where an enum is wanted).
131   * adnstest converts some errno values to EFOOBAR: all of the ones
132     mentioned in adns.h, at least.  This makes the regression test
133     more portable (fixes problem noticed by Bernd Eckenfels).
134   * Add -Wno-pointer-sign if GCC has that option.
135
136   Documentation improvements:
137   * Add documentation comment by definition of adns_r_ptr_raw type enum.
138   * Document in adns.h EINVAL from adns_init meaning bad configuration.
139   * Include several new references to related programs to README.html.
140   * Redacted the TODO list.
141   * New LICENCE.WAIVERS file for GPL-incompatility workarounds.
142   * Clarified GPL-vs-LGPL: a bit less hostile and a bit more mercenary.
143   * Copyright notices updated.
144
145   Packaging changes:
146   * Update MINOR to 2 and DISTVERSION and ADNS_VERSION_STRING to 1.2.
147   * Reran autoconf/autoheader (autoconf Debian 2.13-54).
148   * Create $(bin_dir) and $(lib_dir) on `make install', and also
149     make a libadns.so.1 -> libadns.so.1.<minor> link.  (Suggestions
150     and patch from Nix of esperi.org.uk.)
151   * Add .PHONY: install to Makefile, to help people with demented fs's.
152   * Darwin listed in INSTALL.
153
154   Minor test harness improvements:
155   * Hgettimeofday calls Tensurerecordfile (was Tensureinput/outputfile).
156   * Add bind(2) and listen(2) wrappers (for epithet, but harmless in adns).
157
158  -- Ian Jackson <ian@davenant.greenend.org.uk>  Sat,  8 Apr 2006 15:41:28 +0100
159
160 adns (1.1); urgency=medium
161
162   Major bugfixes:
163   * Do not spin if connect() fails immediately (!)
164   * Stop searching on a CNAME (even if it's broken).
165   * When search list runs out, _qf_owner sets owner to query domain.
166   * Fix bogus multiple updates to p in transmit.c (!)
167
168   Portability improvements:
169   * Fix up spurious #undef's in hredirect.h.
170   * Don't use <sys/select.h> any more, it was a mistake made in pre-1.0
171     (and there doesn't seem to be much explanation why).
172   * Understand and sort of check OpenBSD `lookup' resolv.conf directive.
173   * #include <stdlib.h> in internal.h (for abort etc).
174   * Always #include <sys/types.h> before <sys/socket.h> (for FreeBSD 4.6).
175
176   Cosmetic and documentation improvements:
177   * Added wishlist entry re configurable port no.
178   * Problem with SERVFAIL in TODO.
179   * README.html: mentioned Jarle Aase's Windows port, and other fixes.
180   * Some better source code formatting/wrapping.
181
182  -- Ian Jackson <ian@davenant.greenend.org.uk>  Tue,  1 Jul 2003 22:55:29 +0100
183
184 adns (1.0); urgency=medium
185
186   Bugfixes:
187   * Treat 8-bit characters in email addrs as RFC822 `special' (=> quote).
188   * Fix incorrect `compressed datagram contains loop' error.
189   * Actually compile shared libraries by default !
190   * Fix adnsresfilter usage message to include correct default timeout.
191
192   General improvements:
193   * adnshost, adnslogres, adnsresfilter have options for config override. 
194   * adnsresfilter has --debug option.
195   * Improvements to adnslogres (incl. new -c option) from Tony Finch.
196   * adnslogres has --help option, all utilities support --version.
197   * Documentation improved somewhat, including new GPL-vs-LGPL file.
198
199   Changes for non-BETA release:
200   * Change shared library soname to 1.0.
201   * Do not install adnstest test utility.
202
203   Regression test improvements:
204   * Tests now include adnshost, adnslogres and adnsresfilter.
205   * Test cancellation both before and after query completion.
206
207   Portability fixes and cleanups:
208   * adnstest: setvbuf(stdout,...) before we do first output.
209   * Cope with compilers that don't do `inline'.
210   * Add and fix various missing system #includes.
211   * Find install-sh properly when we need to use it, and chmod it +x.
212   * Do not use variadic macro, use stdarg instead (adnslogres.c).
213   * Regression tests work even if some syscalls are already macros.
214   * #include "config.h" before "adns.h".
215   * Cast a sizeof(...) in src/event.c to unsigned long before printing.
216   * Add pre-generated versions of m4-generated files in regress/.
217   * Kill bogus warning, adh-main.c: `arg2' might be used uninitialized ...
218   * Add extra {...} near adnslogres.c:167 to kill spurious warning.
219   * Use `printf' instead of `echo -n'.
220   * Add list of tested platforms in INSTALL file.
221
222  -- Ian Jackson <ian@davenant.greenend.org.uk>  Sun, 17 Sep 2000 15:15:58 +0100
223
224 adns (0.9) BETA; urgency=high
225
226   Bug fixes:
227   * Don't make _processany always kill the TCP connection with the message
228     `TCP connection failed: poll/select: exceptional condition detected'.
229   * Call MEM_ROUND in __transfer_interim (avoids assert fail
230     `qu->interim_allocd>=0' on some platforms eg 64 bit).
231   * adnsresfilter doesn't resolve textual prefixes of addresses (eg,
232     10.0.0.1 out of 10.0.0.123) if input happens to block at that point.
233   * Do not spin if TCP connection blocks for writing (and add test case).
234   * Fail queries if TCP dies repeatedly, rather than retrying many times.
235   * Do not abort in a couple of places if TCP unexpectedly broken.
236   * Do not free something twice if query fails and is then cancelled.
237
238   Portability/compilation fixes:
239   * Move `extern "C" {' to after #include <...>'s.
240   * Pass LDFLAGS from configure on to ld via settings.make.in.
241   * make clean deletes *.so and *.so.* files.
242   * New --disable-dynamic configure option for non-ELF systems.
243   * Use AC_PROG_INSTALL (=> perhaps install-sh), to avoid bad `install'.
244
245   Minor improvements:
246   * Do not print warning if sendto() gives EAGAIN.
247   * adnsresfilter default timeout changed to 1000ms.
248   * m1test script can invoke `hrecord' differently.
249   * regress/output-<case>.report file contains more useful info.
250   * TODO list and other docs updated slightly.
251   * Referrals with RD+RA set, or RCODE=Refused, don't generate warnings,
252     just debug messages.  BIND does this kind of thing all the time.
253
254  -- Ian Jackson <ian@davenant.greenend.org.uk>  Wed,  9 Aug 2000 16:59:28 +0100
255
256 adns (0.8) BETA; urgency=medium
257
258   Bugfixes:
259   * Race near adns_beforeselect which could cause infinite timeout fixed
260     (it's now less agressive, and will more often return a zero timeout.)
261   * Fixed infrequent race causing assertion failure in adns__tcp_broken
262     `ads->tcpstate == server_connecting || ads->tcpstate == server_ok'.
263   * Spurious `server failure on unidentifiable query' warning suppressed.
264   * If we get a referral, don't also always complain falsely about RD==0.
265   * adnslogres: cast chars to unsigned char before using ctype.h macros.
266   * In _beforeselect, global failure now means zero timeout, and in
267     tcp_events, really never try to do anything with the TCP connection if
268     act is zero.  This might possibly cause an infinite delay (ie, lockup)
269     if things go badly wrong *and* a really unlikely race happens.
270   * Test suite `lines of syscall left' value is correct; !0 is failure.
271
272   Portability fixes:
273   * install-sh (from autoconf 2.12 Debian r13) included.
274   * adnslogres: do not call equivalent of printf("%.*s",0,(char*)0).
275
276   Documentation improvements:
277   * Security/performance note added, about local nameservers and DNSSEC.
278   * Documented that adns_rr_info _rr_hostaddr ( ) for address list
279     means permanent failure, and ? means temporary failure.
280   * Typo (*now for now in _beforeselect description) in adns.h fixed.
281   * Copyright notices updated.
282   
283   Changes to produce more defensive code:
284   * In adns_wait, assert that the timeout is not infinite.
285   * Make qu->id start out as -2 when initially allocated.
286
287  -- Ian Jackson <ian@davenant.greenend.org.uk>  Sun,  7 May 2000 23:37:13 +0100
288
289 adns (0.7) BETA; urgency=medium
290
291   * New adns_submit_reverse_any for eg RBL lookups, and corresponding
292     option to adnshost.
293   * README updated (from www home page).
294
295   * In answers, quote all except alphanums and - _ / + (and document).
296   * Don't reject specials in cnames even without adns_qf_quotefail_cname.
297   * Better checking of long domain names and labels in queries.
298   * answer->owner may be null on error.  Documented, and adnshost copes.
299   * Better reporting of unexpected or weird replies from nameserver.
300   * Add test case for recursion (infinite loop) domain compression.
301
302  -- Ian Jackson <ian@davenant.greenend.org.uk>  Thu,  2 Mar 2000 01:55:53 +0000
303
304 adns (0.6) BETA; urgency=high
305
306   Core library bugfixes:
307   * Avoid infinite timeouts, causing lockup, when they should be zero !
308   * TCP handling revamped (avoids undefined behaviour due to reentrancy).
309   * Do not fail assertion if _qf_owner, _qf_search, domain ends in `.'.
310   * Many memory leaks fixed.
311
312   Cool new utility:
313   * adnsresfilter is like `cat' but converts addresses to names without
314     delaying the output.  Pipe `netstat -n', `tcpdump -ln', etc. into it.
315
316   Test and client program bug and portability fixes:
317   * Dynamic library building works properly.
318   * adnshost prints somewhat better messages about some wrong usages.
319   * Include <stdlib.h> and <sys/types.h> in adnshost.h.
320   * adnslogres: parsing and error checking improved (Tony Finch).
321   * Regression tests can cope with zero-length reads.
322   * Regression tests check for memory leaks.
323   * adnstest copes with empty query type list.
324   * adnstest uninitialised memory bug fixed.
325
326   General improvements
327   * Better control of adnshost output and error messages (new -F options).
328   * New adns_if_logpid option (functionality suggested by Tony Finch).
329   * New fanftest test program from Tony Finch (ignored by `make install').
330   * Reads /etc/resolv-adns.conf if it exists.
331   * Declare flags parameters as enums again, not ints.
332
333  -- Ian Jackson <ian@davenant.greenend.org.uk>  Wed, 24 Nov 1999 17:13:03 +0000
334
335 adns (0.5) unstable; urgency=high
336
337   New features:
338   * adnslogres, ~100x faster replacement for Apache logresolve;
339     Thanks to Tony Finch for the program and the performance figure.
340   * Internal consistency checking with assert if right options set.
341   * adns_wait_poll function like adns_wait but uses poll, not select.
342   * adns_reverse_submit function for easy in-addr queries.
343   * adns_errtypeabbrev funcion for getting eg "permfail" from _s_nodata.
344   * adnshost utility for scripts and the like (rather alpha).
345
346   Incompatible changes:
347   * RRs with mailboxes never rejected due to strange chars if _raw.
348   * Lack of a mailbox produces `.' not `<>'.
349   * Better usage messages (and no default query domain) for adnstest.
350   * Return EAGAIN from _check instead of EWOULDBLOCK.
351   * adns_rr_info on _r_mx etc. shows status type abbrev and status number.
352   
353   Bugfixes:
354   * Do not invoke __autosys indirectly from __procdgram (result: coredump
355     usually in memmove, unless adns_if_noautosys was used).
356   * Do not scramble innards when a query on the output queue is cancelled.
357   * Do not close tcp socket twice.
358   * Mailboxes containing spaces in their names are quoted.
359   * Give ESRCH, not EAGAIN, if _check called with no queries outstanding.
360   * adns_rr_hostaddr naddrs is -1 on temporary failure (as documented).
361   * Reject TXT RRs with no strings.
362   * Correct error messages for qname CNAME foo, foo CNAME bar.
363   * adns_processany actually does something.
364   * Fixed typos in adns.h.
365
366   General improvements:
367   * Promise not to change fds in adns_beforepoll (if now is specified).
368   * Improved textual error string for _s_prohibitedcname.
369   * New comment in adns_processany and return 0 (not r which is 0).
370   * Documentation of resolv.conf directives and options, and of environment
371     variables understood, in adns.h
372   * Regression test scripts set EF_DISABLE_BANNER (for Electric Fence).
373
374   Portability and build improvements:
375   * Give install the '-c' flag (otherwise some delete the original !).
376   * Do not remove top-level Makefile on `make clean'.
377   * Don't complain so much about poll(2) tests if not available.
378   * Do not give -u 0 -g 0 options to install.
379   * Remove trailing , from some enums in adns.h.
380   * Dynamically linked clients now made with -l, so as to avoid rpath.
381   * Do not use $^ in make rules (should help with non-GNU make).
382   * Declare flags parameters as ints not enums because C++ is crap.
383
384  -- Ian Jackson <ian@davenant.greenend.org.uk>  Wed, 13 Oct 1999 02:24:35 +0100
385
386 adns (0.4) unstable; urgency=high
387
388   General important bugfixes:
389   * make _qf_owner work if _qf_search not specified, and test it (oops!)
390   * ads->configerrno now initialised (in setup.c).
391   * timercmp(,,<=) doesn't work - use !timercmp(,,>).
392   * Changed memory semantics of internal queries to fix bugs.
393   * Restarting a TCP-using query (eg due to CNAME) doesn't abort.
394   
395   Fixes for handling of broken kinds of reply:
396   * Only accept a reply from the subset of servers we sent the query.
397   * Ignore CNAME(s) in answer after RR(s) (and test).
398
399   Other bugfixes and improvements:
400   * adns_s_systemfail is in table of errors (for eg adns_strerror).
401   * Do not ship config.cache, Makefile, etc.
402   * Improvements to install instructions, TODO, etc.
403   * Regression tests compile on systems without poll(2).
404   * Do not install adnstest_s.
405   * _submit returns ENOSYS, not adns_s_unknownquery; documented, tested.
406   * <adns.h> includes <sys/types.h>, <sys/time.h>, <unistd.h>.
407
408  -- Ian Jackson <ian@davenant.greenend.org.uk>  Thu, 5 Aug 1999 01:17:38 +0100
409
410 adns (0.3) unstable; urgency=low
411
412   Incompatible changes:
413   * Low adns_status values (below adns_s_max_tempfail) renumbered to make
414     room for future locally-induced and locally-detected errors.
415   * Event loop functions for use by select(2) renamed and tidied up.
416   
417   Features / improvements:
418   * New adns_errabbrev() for getting status abbreviation strings.
419   * regress/checkall prints summary list of failed tests, if any.
420   * Event loop functions for poll(2), and some raw variants.
421   * adnstest has ability to use poll(2), and user can set initflags.
422   * checkall prints passed list as well as failed list, if any failed.
423   * You can iterate over outstanding queries (but only once at a time).
424   
425   Bugfixes:
426   * Non-RFC822 mailbox `domain' formatting now works, and clarified.
427   * Rejection of bad characters in domains (without quoteok) works.
428   * Clean up parents from adns->childw (otherwise would abort/segfault).
429   * In adnstest, allocate enough space for, and terminate, query types.
430   * In adnstest, don't print errno values as adns_status values.
431  
432   * Added TODO file.
433   * Made adnstest.c test context pointers.
434
435  -- Ian Jackson <ian@davenant.greenend.org.uk>  Thu, 15 Jul 1999 00:23:12 +0100
436
437 adns (0.2) experimental; urgency=low
438
439   Portability fixes for compilation on various platforms:
440   * Include <sys/socket.h> and <netinet/in.h> in files with <arpa/inet.h>.
441   * Don't use GCC union assignment feature (.rrs=0 => .rrs.untyped=0).
442   * Explictly cast things to [const] struct sockaddr* in syscall args.
443   * Check whether we need -lsocket.
444   * Include <sys/times.h> in a few more files.
445   * Include <unistd.h> and <sys/time.h> for select.
446   * Look for inet_aton and inet_ntoa (in -lnsl and -lsocket).
447   * LDLIBS removed from dependency lists (some makes don't support this).
448   * An `ambiguous else' warning from some compilers in types.c is removed.
449
450   Other changes:
451   * Added COPYING (copy of the GPL).
452   * Regression test failure output improved.
453   * Missing targets in regress/Makefile.in added.
454   * Regression test doesn't rely on value of fcntl flags eg O_NONBLOCK.
455
456  -- Ian Jackson <ian@davenant.greenend.org.uk>  Thu, 20 May 1999 00:27:32 +0100
457
458 adns (0.1) experimental; urgency=low
459
460   * Initial public alpha release.
461
462  -- Ian Jackson <ian@davenant.greenend.org.uk>  Sat, 17 April 1999 17:42:19
463
464 Local variables:
465 mode: debian-changelog
466 fill-column: 75
467 End: