mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-24 13:25:52 +03:00
csync_exclude: Ignore files where the filename length is > 254 chars.
This is for example HFS+ and others. It fixes #2882
This commit is contained in:
parent
8507aba9f8
commit
4f7c062f3f
1 changed files with 2 additions and 1 deletions
|
@ -224,7 +224,8 @@ CSYNC_EXCLUDE_TYPE csync_excluded_no_ctx(c_strlist_t *excludes, const char *path
|
|||
}
|
||||
|
||||
rc = csync_fnmatch(".csync_journal.db*", bname, 0);
|
||||
if (rc == 0) {
|
||||
// check the strlen and ignore the file silently if its name is longer than 254 chars.
|
||||
if (strlen(bname) > 254 || rc == 0) {
|
||||
match = CSYNC_FILE_SILENTLY_EXCLUDED;
|
||||
SAFE_FREE(bname);
|
||||
SAFE_FREE(dname);
|
||||
|
|
Loading…
Reference in a new issue