Klaas Freitag
2bb52ef6f9
Merge branch 'master' into dav - get cmocka tests and database move.
...
Conflicts:
CMakeLists.txt
cmake/Modules/FindCMocka.cmake
src/csync.c
src/csync_exclude.c
src/csync_reconcile.c
src/csync_statedb.c
src/csync_update.c
src/csync_util.c
src/vio/csync_vio.c
tests/CMakeLists.txt
tests/csync_tests/check_csync_exclude.c
tests/csync_tests/check_csync_statedb_load.c
tests/csync_tests/check_csync_statedb_query.c
tests/csync_tests/check_csync_update.c
tests/std_tests/check_std_c_path.c
2012-10-27 19:27:14 +02:00
Klaas Freitag
0db9427377
Add name of rename target to treewalk data structure.
2012-10-26 20:01:25 +02:00
Klaas Freitag
d82850f145
Fix more csync->ocsync renaming issues.
2012-10-26 16:11:34 +02:00
Andreas Schneider
76e6fbb72f
csync: Move the statedb (journal) to the local directory.
2012-10-22 14:53:59 +02:00
Andreas Schneider
6ae00fe3b2
csync: Don't leak memory on error in csync_create().
...
Found by Coverity.
2012-10-19 20:37:13 +02:00
Andreas Schneider
3f02bf7990
csync: Rework _csync_treewalk_visitor().
...
This fixes some possible null pointer defererences.
Found by Coverity.
2012-10-19 19:24:07 +02:00
Benjamin Legrand
cb8a501241
Fix a typeo and rename REPLCIA to REPLICA.
...
BUG #8
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2012-10-19 15:59:51 +02:00
Klaas Freitag
e89c6dc256
Free md5 memory when destroying.
2012-10-16 09:47:07 +02:00
Klaas Freitag
44a6cf9bfc
Remove wrong free.
2012-09-20 17:54:23 +03:00
Klaas Freitag
fc6cd714c7
win32: Fix random file name generation, init random generator once.
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2012-09-04 12:19:12 +02:00
Klaas Freitag
6fbc510aeb
Free memory of id_list lists.
2012-08-30 13:05:24 +03:00
Klaas Freitag
3950b18dc7
Fix memory leaks in new id sync code.
2012-08-28 17:53:26 +03:00
Klaas Freitag
452babe593
Improved error report on proxy- and connection problems.
2012-08-09 15:12:22 +03:00
Klaas Freitag
5b38e2cb5a
Improved logging in error case (minor fix).
2012-07-31 17:58:49 +03:00
Klaas Freitag
85993d2650
Don't override error code set by timedif in vio init
2012-07-19 21:21:33 +02:00
Klaas Freitag
59202fffe4
fixed spaces and logging if timesync is needed for the module.
2012-07-11 16:03:31 +02:00
Klaas Freitag
de209ecdb9
ownCloud: Don't require time sync between server and client.
2012-07-04 16:32:17 +02:00
Klaas Freitag
8ba2f483bf
Add a vio capabilites function to let a module define its capabilities.
2012-07-04 13:56:24 +02:00
Klaas Freitag
98bc5098c9
Merge branch 'dav' of ssh://milliways.cryptomilk.org/users/freitag/csync into dav
...
Conflicts:
src/csync_propagate.c
2012-07-01 15:27:41 +02:00
Klaas Freitag
8034da83cc
Ability to push to remote without using a tempfile to copy to.
...
Modules such as ownCloud make sure anyway that the upload to a
remote resource happens atomar. This patch allows to switch off
the default behaviour of first copying to a temp file in the
same directory. Use csync_set_remote_push_atomar function to
switch off.
2012-06-26 18:30:50 +02:00
Klaas Freitag
92ec13d886
win32: Fix random file name generation, init random generator once.
2012-06-26 18:30:50 +02:00
Klaas Freitag
e129d02024
do not log on stderr on MacOSX because that spams system log
2012-06-26 18:28:38 +02:00
Klaas Freitag
cd7aec1636
Do not log "module not found" messages if there is a second try.
2012-06-26 18:28:18 +02:00
Klaas Freitag
5e040d47d6
Add ability to log to a callback for the csync library.
2012-06-26 18:28:07 +02:00
Klaas Freitag
b0f6602681
Added a csync_errno function to provide more info for clients.
2012-06-26 18:24:08 +02:00
Klaas Freitag
357b5cd5f3
Ability to push to remote without using a tempfile to copy to.
...
Modules such as ownCloud make sure anyway that the upload to a
remote resource happens atomar. This patch allows to switch off
the default behaviour of first copying to a temp file in the
same directory. Use csync_set_remote_push_atomar function to
switch off.
2012-06-22 15:32:04 +02:00
Klaas Freitag
9836ec864a
win32: Fix random file name generation, init random generator once.
2012-06-20 10:40:40 +02:00
Klaas Freitag
370e2e451f
do not log on stderr on MacOSX because that spams system log
2012-06-18 13:02:06 +02:00
Klaas Freitag
c1953d61c7
Do not log "module not found" messages if there is a second try.
2012-06-18 10:43:07 +02:00
Klaas Freitag
d1ae05166d
Added a newline in case the logging callback is zero.
2012-06-08 12:52:48 +02:00
Klaas Freitag
39534fb5de
Add ability to log to a callback for the csync library.
2012-06-05 17:11:33 +02:00
Klaas Freitag
33d1825551
Merge branch 'dav' of http://git.csync.org/users/freitag/csync into dav
...
Conflicts:
src/csync.c
2012-05-15 16:17:51 +02:00
Klaas Freitag
a198f36bf5
ownCloud: set correct module load error code.
2012-05-15 16:15:27 +02:00
Klaas Freitag
522a6e27a2
Set module load error code after csync_vio_init failed.
2012-05-04 12:07:20 +02:00
Klaas Freitag
2b5d31b29e
Moved error_code to context for thread savety.
2012-05-04 12:07:20 +02:00
Klaas Freitag
73bcdb73a7
Added errnos to the timediff function to allow specific error reports.
2012-05-04 12:05:45 +02:00
Klaas Freitag
e4fae59bcf
Added a csync_errno function to provide more info for clients.
2012-05-04 12:00:46 +02:00
Klaas Freitag
6f51876b45
Moved error_code to context for thread savety.
2012-04-17 12:31:27 +02:00
Klaas Freitag
ec921a1e51
Win32: Added some specific headers to c_private.h to fix build.
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2012-04-17 10:47:56 +02:00
Klaas Freitag
2ac172f4fe
update: Add new exported file tree traverse functions.
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2012-04-17 10:45:04 +02:00
Klaas Freitag
f0d2943e5f
Do not bail out if the config can't be read, use default values.
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2012-04-17 10:42:36 +02:00
Klaas Freitag
871dde4911
Added ability to limit the csync run to the local tree only.
...
That gives apps the chance to use the efficient treewalk of csync
to get information on the tree.
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2012-04-17 10:40:21 +02:00
Klaas Freitag
e32d02c984
Added errnos to the timediff function to allow specific error reports.
2012-04-16 09:33:40 +02:00
Klaas Freitag
285baa6fb7
Added a csync_errno function to provide more info for clients.
2012-04-14 03:13:27 +02:00
Klaas Freitag
a4865cfdf4
Win32: Added some specific headers to c_private.h to fix build.
2012-04-14 03:13:27 +02:00
Klaas Freitag
254045780a
Add new exported file tree traverse functions.
2012-04-14 03:13:27 +02:00
Klaas Freitag
4a0713370e
Do not bail out if the config can't be read, use default values.
2012-04-14 03:13:27 +02:00
Klaas Freitag
1a329539ec
Added ability to limit the csync run to the local tree only.
...
That gives apps the chance to use the efficient treewalk of csync
to get information on the tree.
2012-04-14 03:13:26 +02:00
Klaas Freitag
8b9c10246e
Fix use of strerror_r on non GNU platforms.
2012-03-19 12:40:43 +01:00
Andreas Schneider
f0cf678c0e
Fix config checks.
2012-03-02 17:04:02 +01:00