Skip to content

Commit

Permalink
windows reserved word silently excluded - csync exclude.cpp
Browse files Browse the repository at this point in the history
Proposal to solve nextcloud#3826, by excluding silently windows reserved word like $RECYCLE.BIN.

Signed-off-by: tomdereub <[email protected]>
  • Loading branch information
tomdereub authored and mgallien committed Jul 18, 2023
1 parent 871812d commit 39e59a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/csync/csync_exclude.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 39e59a1

Please sign in to comment.