pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/bind914 net/bind914: fix an error when reloading c...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/70ceb069425b
branches:  trunk
changeset: 333230:70ceb069425b
user:      taca <taca%pkgsrc.org@localhost>
date:      Thu May 02 13:29:53 2019 +0000

description:
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:

 net/bind914/Makefile                         |   3 ++-
 net/bind914/distinfo                         |   4 ++--
 net/bind914/patches/patch-bin_named_server.c |  22 +++++++++++++++++++---
 3 files changed, 23 insertions(+), 6 deletions(-)

diffs (73 lines):

diff -r 653f59fb385e -r 70ceb069425b net/bind914/Makefile
--- a/net/bind914/Makefile      Thu May 02 12:50:42 2019 +0000
+++ b/net/bind914/Makefile      Thu May 02 13:29:53 2019 +0000
@@ -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 -r 653f59fb385e -r 70ceb069425b net/bind914/distinfo
--- a/net/bind914/distinfo      Thu May 02 12:50:42 2019 +0000
+++ b/net/bind914/distinfo      Thu May 02 13:29:53 2019 +0000
@@ -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_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 -r 653f59fb385e -r 70ceb069425b net/bind914/patches/patch-bin_named_server.c
--- a/net/bind914/patches/patch-bin_named_server.c      Thu May 02 12:50:42 2019 +0000
+++ b/net/bind914/patches/patch-bin_named_server.c      Thu May 02 13:29:53 2019 +0000
@@ -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 @@
        /*
         * 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;
        }



Home | Main Index | Thread Index | Old Index