Commit 242dfd9c authored by Mark Andrews's avatar Mark Andrews
Browse files

261 [func] Add dns_zone_markdirty().

parent f5aa0fb8
261 [func] Add dns_zone_markdirty().
260. [bug] Running named as a non-root user failed on Linux
kernels new enough to support retaining capabilities
after setuid().
......
......@@ -287,6 +287,15 @@ dns_zone_setdbtype(dns_zone_t *zone, const char *db_type);
* ISC_R_SUCCESS
*/
void
dns_zone_markdirty(dns_zone_t *zone);
/*
* Mark a zone as 'dirty'.
*
* Require:
* 'zone' to be a valid zone.
*/
void
dns_zone_expire(dns_zone_t *zone);
/*
......
......@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: zone.c,v 1.148 2000/06/15 17:40:18 gson Exp $ */
/* $Id: zone.c,v 1.149 2000/06/19 23:05:30 marka Exp $ */
#include <config.h>
......@@ -1381,6 +1381,15 @@ dns_zone_maintenance(dns_zone_t *zone) {
(void) zone_settimer(zone, now);
}
void
dns_zone_markdirty(dns_zone_t *zone) {
REQUIRE(DNS_ZONE_VALID(zone));
LOCK(&zone->lock);
zone->flags |= DNS_ZONEFLG_NEEDDUMP;
UNLOCK(&zone->lock);
}
void
dns_zone_expire(dns_zone_t *zone) {
REQUIRE(DNS_ZONE_VALID(zone));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment