mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Fix the csync_remove_config_dir() function to remove the journal.
This commit is contained in:
parent
64b35453ec
commit
bbbf5ed13e
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user