diff -r 434e5cc73d47 -r d927b76d07e3 bind/bind.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bind/bind.patch Tue Aug 28 18:33:15 2012 +0200 @@ -0,0 +1,56 @@ +Index: bin/named/unix/os.c +--- bin/named/unix/os.c.orig 2008-05-06 03:32:51 +0200 ++++ bin/named/unix/os.c 2008-07-25 07:47:14 +0200 +@@ -261,6 +261,13 @@ + SET_CAP(CAP_SETGID); + + /* ++ * Since we call chown, we need this. ++ */ ++#if defined(CAP_CHOWN) ++ SET_CAP(CAP_CHOWN); ++#endif ++ ++ /* + * Without this, we run into problems reading a configuration file + * owned by a non-root user and non-world-readable on startup. + */ + +----------------------------------------------------------------------------- + +As mentionned in http://groups.google.com/group/comp.protocols.dns.bind/browse_thread/thread/5a6cb9a54b56b199 +"Assertion debug information" without this patch BIND+dlz crashes when +doing zone transfer request ("host -la domain server") + +Index: bin/named/xfrout.c +--- bin/named/xfrout.c.orig 2008-04-03 08:20:33.000000000 +0200 ++++ bin/named/xfrout.c 2008-11-27 08:58:20.000000000 +0100 +@@ -1744,6 +1745,7 @@ xfrout_senddone(isc_task_t *task, isc_ev + sendstream(xfr); + } else { + /* End of zone transfer stream. */ ++ if (xfr->zone != NULL) + inc_stats(xfr->zone, dns_nsstatscounter_xfrdone); + xfrout_log(xfr, ISC_LOG_INFO, "%s ended", xfr->mnemonic); + ns_client_next(xfr->client, ISC_R_SUCCESS); + +----------------------------------------------------------------------------- + +OpenPKG intentionally uses a reused "rdnc.key" and a "rdnc.conf" +and hence we don't want to see those warning messages. + +Index: bin/rndc/rndc.c +--- bin/rndc/rndc.c.orig 2010-07-11 02:12:18.000000000 +0200 ++++ bin/rndc/rndc.c 2011-02-06 17:08:38.000000000 +0100 +@@ -468,9 +468,11 @@ + admin_conffile, admin_keyfile); + key_only = ISC_TRUE; + } else if (! c_flag && isc_file_exists(admin_keyfile)) { ++ /* + fprintf(stderr, "WARNING: key file (%s) exists, but using " + "default configuration file (%s)\n", + admin_keyfile, admin_conffile); ++ */ + } + + DO("create parser", cfg_parser_create(mctx, log, pctxp));