]> git.ipfire.org Git - thirdparty/knot-dns.git/commitdiff
keymgr: fake configuration quoting kasp_db path
authorLibor Peltan <libor.peltan@nic.cz>
Fri, 10 Jul 2020 16:11:03 +0000 (18:11 +0200)
committerDaniel Salzman <daniel.salzman@nic.cz>
Mon, 13 Jul 2020 18:07:09 +0000 (20:07 +0200)
...this was found when running tests-extra in a loop,
having a hashtag in server path

src/utils/keymgr/main.c

index f311300f97d23fa864ae4d8d9190e520661db0be..015575a646c92675489703e48213ec3d854e7e34 100644 (file)
@@ -318,7 +318,7 @@ static bool init_conf_blank(const char *kasp_dir)
        char *confstr = sprintf_alloc("template:\n"""
                                      "  - id: default\n"
                                      "    storage: .\n"
-                                     "    kasp-db: %s\n", kasp_dir);
+                                     "    kasp-db: \"%s\"\n", kasp_dir);
        int ret = conf_import(conf(), confstr, false, false);
        free(confstr);
        if (ret != KNOT_EOK) {