Hardcode Desktop.ini in the exclude list

This prevents it from being removed from the exclude list, which
would be an issue since the client itself creates this file in a way
that wouldn't match on machines with different installation paths.
This commit is contained in:
Jocelyn Turcotte 2017-08-14 11:42:30 +02:00
Родитель 251f1d0047
Коммит a480a318fd
2 изменённых файлов: 7 добавлений и 1 удалений

Просмотреть файл

@ -293,6 +293,13 @@ static CSYNC_EXCLUDE_TYPE _csync_excluded_common(c_strlist_t *excludes, const ch
}
#endif
/* We create a desktop.ini on Windows for the sidebar icon, make sure we don't sync them. */
rc = csync_fnmatch("Desktop.ini", bname, 0);
if (rc == 0) {
match = CSYNC_FILE_SILENTLY_EXCLUDED;
goto out;
}
rc = csync_fnmatch(".owncloudsync.log*", bname, 0);
if (rc == 0) {
match = CSYNC_FILE_SILENTLY_EXCLUDED;

Просмотреть файл

@ -8,7 +8,6 @@
].ds_store
._*
]Thumbs.db
desktop.ini
System Volume Information
.*.sw?