Lines Matching defs:zfilename
1571 char* zfilename;
1576 zfilename = z->zonefile;
1577 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(zfilename,
1579 zfilename += strlen(cfg->chrootdir);
1583 verbose(VERB_ALGO, "read zonefile %s for %s", zfilename, nm);
1585 in = fopen(zfilename, "r");
1591 zfilename, n?n:"error");
1596 zfilename, n?n:"error", strerror(errno));
1617 if(!az_parse_file(z, in, rr, sizeof(rr), &state, zfilename, 0, cfg)) {
1620 zfilename, n?n:"error");
5183 char* zfilename;
5206 zfilename = z->zonefile;
5207 if(cfg->chrootdir && cfg->chrootdir[0] && strncmp(zfilename,
5209 zfilename += strlen(cfg->chrootdir);
5213 verbose(VERB_ALGO, "write zonefile %s for %s", zfilename, nm);
5217 if((size_t)strlen(zfilename) + 16 > sizeof(tmpfile)) {
5219 " zonefile %s", zfilename);
5223 snprintf(tmpfile, sizeof(tmpfile), "%s.tmp%u", zfilename,
5238 (void)unlink(zfilename); /* windows does not replace file with rename() */
5240 if(rename(tmpfile, zfilename) < 0) {
5241 log_err("could not rename(%s, %s): %s", tmpfile, zfilename,