Skip to content

Commit

Permalink
libsync: Remove auto-exclude for symlinks
Browse files Browse the repository at this point in the history
Signed-off-by: Tamino Bauknecht <[email protected]>
  • Loading branch information
taminob committed Dec 10, 2023
1 parent ed5fdd8 commit 5812d5c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/libsync/discovery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ bool ProcessDirectoryJob::handleExcluded(const QString &path, const Entries &ent
}
}

if (excluded == CSYNC_NOT_EXCLUDED && !entries.localEntry.isSymLink) {
if (excluded == CSYNC_NOT_EXCLUDED) {
return false;
} else if (excluded == CSYNC_FILE_SILENTLY_EXCLUDED || excluded == CSYNC_FILE_EXCLUDE_AND_REMOVE) {
emit _discoveryData->silentlyExcluded(path);
Expand All @@ -327,8 +327,6 @@ bool ProcessDirectoryJob::handleExcluded(const QString &path, const Entries &ent
}

if (entries.localEntry.isSymLink) {
/* Symbolic links are ignored. */
item->_errorString = tr("Symbolic links are not supported in syncing.");
} else {
switch (excluded) {
case CSYNC_NOT_EXCLUDED:
Expand Down

0 comments on commit 5812d5c

Please sign in to comment.