From 39e59a1c79466af59bc397b8234f3f7ee004b385 Mon Sep 17 00:00:00 2001 From: tomdereub Date: Tue, 27 Sep 2022 13:22:34 +0200 Subject: [PATCH] windows reserved word silently excluded - csync exclude.cpp Proposal to solve https://github.com/nextcloud/desktop/issues/3826, by excluding silently windows reserved word like $RECYCLE.BIN. Signed-off-by: tomdereub --- src/csync/csync_exclude.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/csync/csync_exclude.cpp b/src/csync/csync_exclude.cpp index 9efe50df39165..5c3ab723cedac 100644 --- a/src/csync/csync_exclude.cpp +++ b/src/csync/csync_exclude.cpp @@ -174,7 +174,7 @@ static CSYNC_EXCLUDE_TYPE _csync_excluded_common(const QString &path, bool exclu } if (csync_is_windows_reserved_word(bname)) { - return CSYNC_FILE_EXCLUDE_INVALID_CHAR; + return CSYNC_FILE_SILENTLY_EXCLUDED; } // Filter out characters not allowed in a filename on windows