aboutsummaryrefslogtreecommitdiffstats
path: root/src/blogc-make/ctx.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/blogc-make/ctx.c')
-rw-r--r--src/blogc-make/ctx.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/blogc-make/ctx.c b/src/blogc-make/ctx.c
index 2a4426d..39f1bf4 100644
--- a/src/blogc-make/ctx.c
+++ b/src/blogc-make/ctx.c
@@ -102,12 +102,10 @@ bm_ctx_new(const char *settings_file, bc_error_t **err)
const char *output_dir = bc_trie_lookup(settings->settings, "output_dir");
if (output_dir[0] == '/') {
- rv->output_dir = realpath(output_dir, NULL);
+ rv->output_dir = bc_strdup(output_dir);
}
else {
- char *tmp = bc_strdup_printf("%s/%s", rv->root_dir, output_dir);
- rv->output_dir = realpath(tmp, NULL);
- free(tmp);
+ rv->output_dir = bc_strdup_printf("%s/%s", rv->root_dir, output_dir);
}
const char *template_dir = bc_trie_lookup(settings->settings,