Journal: Don't use a ._ path if it won't work #5633
authorChristian Kamm <mail@ckamm.de>
Fri, 16 Jun 2017 13:43:21 +0000 (15:43 +0200)
committerMarkus Goetz <markus@woboq.com>
Tue, 20 Jun 2017 11:35:34 +0000 (13:35 +0200)
commit4291ea47f77752848e31341019e9be98f59526df
tree3dc04a7774178d1bdfb9fed13f4a5de6ebb579cc
parentb50706a7aae96a200bcccb241af8ef72a9731b18
Journal: Don't use a ._ path if it won't work #5633

When synchronizing a folder on a samba share, creating files that begin
with ._ is often forbidden. This prevented the client from creating
its ._sync_abcdef.db file.

Now, it'll check whether the preferred filename is creatable, and if
it isn't it'll use .sync_abcdef.db instead.

The disadvantage is that this alternative path won't be ignored by
older clients - that was the reason for the ._ prefix.
csync/src/csync_exclude.c
csync/tests/csync_tests/check_csync_exclude.c
src/cmd/cmd.cpp
src/gui/folder.cpp
src/gui/folderman.cpp
src/gui/folderwatcher_linux.cpp
src/libsync/syncjournaldb.cpp
src/libsync/syncjournaldb.h