mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 22:45:39 +00:00
1766. [bug] Update the master file timestamp on successful refresh
as well as the journal's timestamp. [RT# 13062]
This commit is contained in:
3
CHANGES
3
CHANGES
@@ -14,7 +14,8 @@
|
|||||||
1767. [port] Builds on IPv6 platforms without IPv6 Advanced API
|
1767. [port] Builds on IPv6 platforms without IPv6 Advanced API
|
||||||
support for (struct in6_pktinfo) failed. [RT #13077]
|
support for (struct in6_pktinfo) failed. [RT #13077]
|
||||||
|
|
||||||
1766. [placeholder] rt13062
|
1766. [bug] Update the master file timestamp on successful refresh
|
||||||
|
as well as the journal's timestamp. [RT# 13062]
|
||||||
|
|
||||||
1765. [bug] configure --with-openssl=auto failed. [RT #12937]
|
1765. [bug] configure --with-openssl=auto failed. [RT #12937]
|
||||||
|
|
||||||
|
@@ -15,7 +15,7 @@
|
|||||||
* PERFORMANCE OF THIS SOFTWARE.
|
* PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: zone.c,v 1.423 2004/11/09 22:16:57 marka Exp $ */
|
/* $Id: zone.c,v 1.424 2004/11/22 23:52:25 marka Exp $ */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
@@ -3644,7 +3644,12 @@ refresh_callback(isc_task_t *task, isc_event_t *event) {
|
|||||||
result = ISC_R_FAILURE;
|
result = ISC_R_FAILURE;
|
||||||
if (zone->journal != NULL)
|
if (zone->journal != NULL)
|
||||||
result = isc_file_settime(zone->journal, &now);
|
result = isc_file_settime(zone->journal, &now);
|
||||||
if (result != ISC_R_SUCCESS)
|
if (result == ISC_R_SUCCESS &&
|
||||||
|
!DNS_ZONE_FLAG(zone, DNS_ZONEFLG_NEEDDUMP) &&
|
||||||
|
!DNS_ZONE_FLAG(zone, DNS_ZONEFLG_DUMPING)) {
|
||||||
|
result = isc_file_settime(zone->masterfile,
|
||||||
|
&now);
|
||||||
|
} else if (result != ISC_R_SUCCESS)
|
||||||
result = isc_file_settime(zone->masterfile,
|
result = isc_file_settime(zone->masterfile,
|
||||||
&now);
|
&now);
|
||||||
/* Someone removed the file from underneath us! */
|
/* Someone removed the file from underneath us! */
|
||||||
|
Reference in New Issue
Block a user