"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "dbaccess.c" between
nsd-4.3.6.tar.gz and nsd-4.3.7.tar.gz

About: NSD is an authoritative only, high performance, simple name server daemon.

dbaccess.c  (nsd-4.3.6):dbaccess.c  (nsd-4.3.7)
skipping to change at line 533 skipping to change at line 533
unsigned int errors; unsigned int errors;
const char* fname; const char* fname;
if(!nsd->db || !zone || !zone->opts || !zone->opts->pattern->zonefile) if(!nsd->db || !zone || !zone->opts || !zone->opts->pattern->zonefile)
return; return;
mtime.tv_sec = 0; mtime.tv_sec = 0;
mtime.tv_nsec = 0; mtime.tv_nsec = 0;
fname = config_make_zonefile(zone->opts, nsd); fname = config_make_zonefile(zone->opts, nsd);
assert(fname); assert(fname);
if(!file_get_mtime(fname, &mtime, &nonexist)) { if(!file_get_mtime(fname, &mtime, &nonexist)) {
if(nonexist) { if(nonexist) {
VERBOSITY(2, (LOG_INFO, "zonefile %s does not exist", if(zone_is_slave(zone->opts)) {
fname)); /* for slave zones not as bad, no zonefile
* may just mean we have to transfer it */
VERBOSITY(2, (LOG_INFO, "zonefile %s does not exi
st",
fname));
} else {
/* without a download option, we can never
* serve data, more severe error printout */
log_msg(LOG_ERR, "zonefile %s does not exist", fn
ame);
}
} else } else
log_msg(LOG_ERR, "zonefile %s: %s", log_msg(LOG_ERR, "zonefile %s: %s",
fname, strerror(errno)); fname, strerror(errno));
if(taskudb) task_new_soainfo(taskudb, last_task, zone, 0); if(taskudb) task_new_soainfo(taskudb, last_task, zone, 0);
return; return;
} else { } else {
const char* zone_fname = zone->filename; const char* zone_fname = zone->filename;
struct timespec zone_mtime = zone->mtime; struct timespec zone_mtime = zone->mtime;
if(nsd->db->udb) { if(nsd->db->udb) {
zone_fname = udb_zone_get_file_str(nsd->db->udb, zone_fname = udb_zone_get_file_str(nsd->db->udb,
 End of changes. 1 change blocks. 
2 lines changed or deleted 13 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)