From 2875d08c16ec6cac51869b42ef2ca6d8033fd847 Mon Sep 17 00:00:00 2001 From: Klaas Freitag Date: Fri, 8 Nov 2013 11:17:43 +0100 Subject: [PATCH] Record the rename path also for remote renaming. --- src/csync_update.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/csync_update.c b/src/csync_update.c index e22e999022..1b6f67c038 100644 --- a/src/csync_update.c +++ b/src/csync_update.c @@ -263,7 +263,9 @@ static int _csync_detect_update(CSYNC *ctx, const char *file, goto out; } st->instruction = CSYNC_INSTRUCTION_RENAME; - // FIXME: csync_rename_record here ? + if (fs->type == CSYNC_VIO_FILE_TYPE_DIRECTORY) { + csync_rename_record(ctx, tmp->path, path); + } if( c_streq(tmp->md5, fs->md5) ) { /* FIXME !! md5 still the same */