From bbbf5ed13e2afb0208af23456ea91f79a72c7127 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 27 May 2008 15:45:18 +0200 Subject: [PATCH] Fix the csync_remove_config_dir() function to remove the journal. --- src/csync.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/csync.c b/src/csync.c index e39881cd69..640ade937f 100644 --- a/src/csync.c +++ b/src/csync.c @@ -559,13 +559,13 @@ int csync_remove_config_dir(CSYNC *ctx) { unlink(path); SAFE_FREE(path); - if (asprintf(&path, "%s/%s", ctx->options.config_dir, CSYNC_JOURNAL_FILE) < 0) { + if (asprintf(&path, "%s", ctx->journal.file) < 0) { return -1; } unlink(path); SAFE_FREE(path); - if (asprintf(&path, "%s/%s.ctmp", ctx->options.config_dir, CSYNC_JOURNAL_FILE) < 0) { + if (asprintf(&path, "%s.ctmp", ctx->journal.file) < 0) { return -1; } unlink(path);