diff options
author | taca <taca@pkgsrc.org> | 2019-05-02 13:29:53 +0000 |
---|---|---|
committer | taca <taca@pkgsrc.org> | 2019-05-02 13:29:53 +0000 |
commit | d37bfdb699384c093d6539bc8eaf838725c86f38 (patch) | |
tree | 9fbbf9987f150c82fa864b330576381b3e3bc768 /net | |
parent | 292160d545546c056ae61a6b4ba940e5b035d3c8 (diff) | |
download | pkgsrc-d37bfdb699384c093d6539bc8eaf838725c86f38.tar.gz |
net/bind914: fix an error when reloading configuration
Fix an error when reloading configuration. There is on more check to
"directory" in option statement is writable.
Bump PKGREVISION.
Diffstat (limited to 'net')
-rw-r--r-- | net/bind914/Makefile | 3 | ||||
-rw-r--r-- | net/bind914/distinfo | 4 | ||||
-rw-r--r-- | net/bind914/patches/patch-bin_named_server.c | 22 |
3 files changed, 23 insertions, 6 deletions
diff --git a/net/bind914/Makefile b/net/bind914/Makefile index fe373e2c96a..e87bfab455d 100644 --- a/net/bind914/Makefile +++ b/net/bind914/Makefile @@ -1,7 +1,8 @@ -# $NetBSD: Makefile,v 1.1 2019/04/30 03:34:34 taca Exp $ +# $NetBSD: Makefile,v 1.2 2019/05/02 13:29:53 taca Exp $ DISTNAME= bind-${BIND_VERSION} PKGNAME= ${DISTNAME:S/-P/pl/} +PKGREVISION= 1 CATEGORIES= net MASTER_SITES= ftp://ftp.isc.org/isc/bind9/${BIND_VERSION}/ diff --git a/net/bind914/distinfo b/net/bind914/distinfo index 5ae628c952f..d30b8232ff2 100644 --- a/net/bind914/distinfo +++ b/net/bind914/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.1 2019/04/30 03:34:34 taca Exp $ +$NetBSD: distinfo,v 1.2 2019/05/02 13:29:53 taca Exp $ SHA1 (bind-9.14.1.tar.gz) = 29e43a99c059c5458822833b2267f237361feca6 RMD160 (bind-9.14.1.tar.gz) = 12e8bec5d7eb29d588596a204220edfe12bbc743 @@ -8,7 +8,7 @@ SHA1 (patch-bin_named_Makefile.in) = 12e071c61e0f326d0fd7613c6b8884ad0da35214 SHA1 (patch-bin_named_main.c) = 51c8ab464a009575b6513c7ed4b79f89446eb7d0 SHA1 (patch-bin_named_pfilter.c) = b54f872c883c8fbc2d9c04df65c185dc057cc36b SHA1 (patch-bin_named_pfilter.h) = c14617cb266a4b5d33ba6e5db98562e806792833 -SHA1 (patch-bin_named_server.c) = 8f981649ba318de1acc4e4eaf76d9ff647de38ef +SHA1 (patch-bin_named_server.c) = 558088a1e1128e7a69394d66bfff03a5b3b62ee8 SHA1 (patch-bin_nsupdate_nsupdate.c) = f71213385ec7c78243c1f93a6940caa111cb5072 SHA1 (patch-bin_pkcs11_pkcs11-keygen.c) = d953bf48aadcdf7e95975d335167cc50f54ef91e SHA1 (patch-bin_tests_system_metadata_tests.sh) = d01a492d0b7738760bdbff714248e279a78fef28 diff --git a/net/bind914/patches/patch-bin_named_server.c b/net/bind914/patches/patch-bin_named_server.c index 409c015f827..3031c18958d 100644 --- a/net/bind914/patches/patch-bin_named_server.c +++ b/net/bind914/patches/patch-bin_named_server.c @@ -1,11 +1,27 @@ -$NetBSD: patch-bin_named_server.c,v 1.1 2019/04/30 03:34:34 taca Exp $ +$NetBSD: patch-bin_named_server.c,v 1.2 2019/05/02 13:29:53 taca Exp $ * Disable checking working directory is writable as BIND_USER in NetBSD base system. --- bin/named/server.c.orig 2019-04-06 20:09:59.000000000 +0000 +++ bin/named/server.c -@@ -8864,6 +8864,7 @@ load_configuration(const char *filename, +@@ -6464,6 +6464,7 @@ directory_callback(const char *clausenam + "option 'directory' contains relative path '%s'", + directory); + ++#if 0 + if (!isc_file_isdirwritable(directory)) { + isc_log_write(named_g_lctx, NAMED_LOGCATEGORY_GENERAL, + NAMED_LOGMODULE_SERVER, ISC_LOG_ERROR, +@@ -6471,6 +6472,7 @@ directory_callback(const char *clausenam + directory); + return (ISC_R_NOPERM); + } ++#endif + + result = isc_dir_chdir(directory); + if (result != ISC_R_SUCCESS) { +@@ -8864,6 +8866,7 @@ load_configuration(const char *filename, named_os_changeuser(); } @@ -13,7 +29,7 @@ $NetBSD: patch-bin_named_server.c,v 1.1 2019/04/30 03:34:34 taca Exp $ /* * Check that the working directory is writable. */ -@@ -8874,6 +8875,7 @@ load_configuration(const char *filename, +@@ -8874,6 +8877,7 @@ load_configuration(const char *filename, result = ISC_R_NOPERM; goto cleanup; } |