+4563. [bug] Modified zones would occasionally fail to reload.
+ [RT #39424]
+
4561. [port] Silence a warning in strict C99 compilers. [RT #44414]
4560. [bug] mdig: add -m option to enable memory debugging rather
return (ISC_TRUE);
}
-
return (ISC_FALSE);
}
* been loaded yet, zone->loadtime will be the epoch.
*/
if (zone->masterfile != NULL) {
+ isc_time_t filetime;
+
/*
* The file is already loaded. If we are just doing a
* "rndc reconfig", we are done.
result = DNS_R_UPTODATE;
goto cleanup;
}
+
+
+ /*
+ * If the file modification time is in the past
+ * set loadtime to that value.
+ */
+ result = isc_file_getmodtime(zone->masterfile, &filetime);
+ if (result == ISC_R_SUCCESS &&
+ isc_time_compare(&loadtime, &filetime) > 0)
+ loadtime = filetime;
}
/*