]> dgit.raspbian.org Git - nextcloud-desktop.git/commitdiff
windows reserved word silently excluded - csync exclude.cpp
authortomdereub <pbtom@lamonerie.net>
Tue, 27 Sep 2022 11:22:34 +0000 (13:22 +0200)
committerMatthieu Gallien <matthieu_gallien@yahoo.fr>
Tue, 18 Jul 2023 08:57:17 +0000 (10:57 +0200)
Proposal to solve https://github.com/nextcloud/desktop/issues/3826, by excluding silently windows reserved word like $RECYCLE.BIN.

Signed-off-by: tomdereub <pbtom@lamonerie.net>
src/csync/csync_exclude.cpp

index 9efe50df39165d5c072c2f4067e8bf12903a859d..5c3ab723cedac75814b4577d70349a161cc5c3a0 100644 (file)
@@ -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