From e1faa90351d3aedcd154cf155f84438ec959aa52 Mon Sep 17 00:00:00 2001 From: abraunegg Date: Mon, 31 Jan 2022 10:13:19 +1100 Subject: [PATCH] If a sync_list exclusion is matched, the item needs to be excluded when using --resync (#1820) * If a sync_list exclusion is matched, the item needs to be excluded when using --resync --- src/selective.d | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/selective.d b/src/selective.d index 6b589d4d..d401dc22 100644 --- a/src/selective.d +++ b/src/selective.d @@ -373,6 +373,11 @@ private bool isPathExcluded(string path, string[] allowedPaths) log.vdebug("[F]exclude = ", exclude); log.vdebug("[F]excludeMatched = ", excludeMatched); + // If exclude or excludeMatched is true, then finalResult has to be true + if ((exclude) || (excludeMatched)) { + finalResult = true; + } + // results if (finalResult) { log.vdebug("Evaluation against 'sync_list' final result: EXCLUDED");