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.
2.4.0
Jocelyn Turcotte 5 years ago
parent 251f1d0047
commit a480a318fd
  1. 7
      csync/src/csync_exclude.c
  2. 1
      sync-exclude.lst

@ -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?

Loading…
Cancel
Save