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 Sep 27, 2022
1 parent 9f952e3 commit 2ab6723
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 @@ -171,7 +171,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 2ab6723

Please sign in to comment.