From de3963ac75c80fbd3a49b1ae368d0c080fbaaa0f Mon Sep 17 00:00:00 2001 From: Klaas Freitag Date: Tue, 5 Nov 2013 18:03:02 +0100 Subject: [PATCH] Set file_id correctly for renamed files. --- src/csync_reconcile.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/csync_reconcile.c b/src/csync_reconcile.c index 47c526ac0c..26639ca5e5 100644 --- a/src/csync_reconcile.c +++ b/src/csync_reconcile.c @@ -127,6 +127,7 @@ static int _csync_merge_algorithm_visitor(void *obj, void *data) { || cur->type == CSYNC_FTW_TYPE_DIR) { other->instruction = CSYNC_INSTRUCTION_RENAME; other->destpath = c_strdup( cur->path ); + csync_vio_set_file_id( other->file_id, cur->file_id ); cur->instruction = CSYNC_INSTRUCTION_NONE; } else if (other->instruction == CSYNC_INSTRUCTION_REMOVE) { other->instruction = CSYNC_INSTRUCTION_RENAME;