Skip to content
Snippets Groups Projects
Commit 263a9c04 authored by Marek Vavrusa's avatar Marek Vavrusa
Browse files

Default zone file, relative to storage.

parent 74906a98
No related branches found
No related tags found
No related merge requests found
......@@ -177,6 +177,11 @@ static int conf_process(conf_t *conf)
zone->ixfr_fslimit = conf->ixfr_fslimit;
}
// Default zone file
if (zone->file == NULL) {
zone->file = strcdup(conf->name, ".zone");
}
// Relative zone filenames should be relative to storage
if (zone->file[0] != '/') {
size_t prefix_len = strlen(conf->storage) + 1; // + '\0'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment