bind9/lib/ns
Michał Kępień d181c28c60 Add ns_plugin_expandpath()
Implement a helper function which, given an input string:

  - copies it verbatim if it contains at least one path separator,
  - prepends the named plugin installation directory to it otherwise.

This function will allow configuration parsing code to conveniently
determine the full path to a plugin module given either a path or a
filename.

While other, simpler ways exist for making sure filenames passed to
dlopen() cause the latter to look for shared objects in a specific
directory, they are very platform-specific.  Using full paths is thus
likely the most portable and reliable solution.

Also added unit tests for ns_plugin_expandpath() to ensure it behaves
as expected for absolute paths, relative paths, and filenames, for
various target buffer sizes.

(Note: plugins share a directory with named on Windows; there is no
default plugin path. Therefore the source path is copied to the
destination path with no modification.)
2019-03-05 16:06:24 -08:00
..
include Add ns_plugin_expandpath() 2019-03-05 16:06:24 -08:00
tests Add ns_plugin_expandpath() 2019-03-05 16:06:24 -08:00
win32 Add ns_plugin_expandpath() 2019-03-05 16:06:24 -08:00
api documentation changes setting up 9.15 development branch 2019-02-21 16:42:17 -08:00
client.c silently ignore additional keytag options 2019-02-20 19:44:36 -08:00
hooks.c Add ns_plugin_expandpath() 2019-03-05 16:06:24 -08:00
interfacemgr.c - Make isc_mutex_destroy return void 2018-11-22 11:52:08 +00:00
Kyuafile regen master 2017-12-29 01:44:18 +00:00
lib.c Remove message catalogs 2019-01-09 23:44:26 +01:00
listenlist.c Replace custom isc_boolean_t with C standard bool type 2018-08-08 09:37:30 +02:00
log.c set up hooks.c to enable setting hook points and loading modules 2018-12-06 10:29:05 -08:00
Makefile.in Add ns_plugin_expandpath() 2019-03-05 16:06:24 -08:00
notify.c Define a separate dns_zonetype_t for mirror zones 2018-10-24 20:32:55 +02:00
query.c fix crash in query_respond_any() from all records being hidden 2019-02-28 13:55:47 -08:00
server.c initial implementation of filter-aaaa.so as a shared object 2018-12-06 10:29:10 -08:00
sortlist.c remove the experimental authoritative ECS support from named 2018-05-25 08:21:25 -07:00
stats.c - Make isc_mutex_destroy return void 2018-11-22 11:52:08 +00:00
update.c create dns_rdatatype_atcname to split records that can appear along side CNAME from DNSSEC; dns_rdatatype_iszonecutauth allowed too many types 2018-12-14 12:48:55 +11:00
version.c address win32 build issues 2018-05-22 16:32:21 -07:00
xfrout.c denied axfr requests were not effective for writable DLZ zones 2019-02-20 19:44:38 -08:00