From f071c8bf375f378eb5155c7cd6596fe5c1aa43c5 Mon Sep 17 00:00:00 2001
From: Marek Vavrusa <marek.vavrusa@nic.cz>
Date: Wed, 17 Jul 2013 15:39:11 +0200
Subject: [PATCH] Fixed default zone file name containing .. in suffix.

Like example.com..zone
---
 src/knot/conf/conf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/knot/conf/conf.c b/src/knot/conf/conf.c
index 87c9a0068..fae998b63 100644
--- a/src/knot/conf/conf.c
+++ b/src/knot/conf/conf.c
@@ -295,7 +295,7 @@ static int conf_process(conf_t *conf)
 
 		// Default zone file
 		if (zone->file == NULL) {
-			zone->file = strcdup(zone->name, ".zone");
+			zone->file = strcdup(zone->name, "zone");
 			if (!zone->file) {
 				ret = KNOT_ENOMEM;
 				continue;
-- 
GitLab