From 76ee4cb3ba73a2a705ca742df7d05c0f2132d04a Mon Sep 17 00:00:00 2001 From: Klaas Freitag Date: Wed, 7 Aug 2013 12:14:29 +0200 Subject: [PATCH] Add symlinks to the file tree with instruction IGNORE --- 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 e265b3333..10fec639b 100644 --- a/src/csync_update.c +++ b/src/csync_update.c @@ -182,7 +182,7 @@ static int _csync_detect_update(CSYNC *ctx, const char *file, st->instruction = CSYNC_INSTRUCTION_NONE; goto out; } - if (excluded > 0) { + if (excluded > 0 || type == CSYNC_FTW_TYPE_SLINK) { st->instruction = CSYNC_INSTRUCTION_IGNORE; goto out; } @@ -335,6 +335,8 @@ int csync_walker(CSYNC *ctx, const char *file, const csync_vio_file_stat_t *fs, break; case CSYNC_FTW_FLAG_SLINK: CSYNC_LOG(CSYNC_LOG_PRIORITY_TRACE, "symlink: %s - not supported", file); + type = CSYNC_FTW_TYPE_SLINK; + break; case CSYNC_FTW_FLAG_DNR: case CSYNC_FTW_FLAG_DP: case CSYNC_FTW_FLAG_SLN: