Klaas Freitag
599e435443
Use the new logging framework for ownCloud module.
2013-05-06 16:58:14 +02:00
Klaas Freitag
36ec7aa5b6
Added set_property method for the ownCloud module.
2013-05-06 16:56:45 +02:00
Klaas Freitag
25948ef708
Add the file level progress callback.
2013-05-06 16:52:08 +02:00
Klaas Freitag
4ce67e38d1
Fix printf operator to interpret phash correctly for sqlite3.
2013-05-06 16:27:11 +02:00
Andreas Schneider
9409d1c96e
If there is no vio commit function don't fail.
2013-04-24 14:35:19 +02:00
Klaas Freitag
b09093a496
Make csync_commit and csync_destroy more readable.
2013-04-24 14:22:54 +02:00
Klaas Freitag
3b6d1cab91
Test for csync_commit
2013-04-24 14:21:51 +02:00
Klaas Freitag
fef18208d6
Add module method for csync_commit.
2013-04-24 14:21:51 +02:00
Klaas Freitag
98e6d3818f
Allow windows to load user exclude list.
2013-04-24 14:21:51 +02:00
Klaas Freitag
8b65e8fbf3
Added csync_commit to be able to reuse the csync context.
2013-04-24 14:21:51 +02:00
Andreas Schneider
85b565fcbe
csync: Use macros for CSYNC_STATUS checking.
2013-04-06 18:48:16 +02:00
Andreas Schneider
7934cde2db
csync: Pass the errno to csync_errno_to_status().
...
This is needed to be sure we are thread-safe. See also the manpage of
strerror_r(3).
2013-04-06 18:48:16 +02:00
Andreas Schneider
b701bf3d9b
csync: Rename UNSPEC_ERROR to UNSUCCESSFUL.
2013-04-06 18:48:16 +02:00
Klaas Freitag
4e6d54194f
Check for file equalness after having created a conflict file.
...
If the files are equal and the conflict was created because the
timestamps were screwed the conflict is removed again. This only
works on the local repository so far.
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-04-06 18:48:11 +02:00
Klaas Freitag
9f7de96a73
Added c_compare_file function plus a test function.
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-04-06 18:11:18 +02:00
Klaas Freitag
b8cf6f7f5c
Make VIO_METHOD_HAS_FUNC macro more robust.
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-04-06 18:11:18 +02:00
Klaas Freitag
4280adc60a
More optimized database handling for csync journal build up.
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-04-06 18:11:15 +02:00
Olivier Goffart
68fdf56db7
Add an API to be able to pass information to the vio module.
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-04-05 17:40:22 +02:00
Klaas Freitag
bec2c4a2ea
Added get_status_string function.
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-04-05 17:40:22 +02:00
Klaas Freitag
3de8a78e1c
Added error_string handling, improved error handling.
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-04-05 17:40:22 +02:00
Klaas Freitag
2204c94770
Introduce csync status codes
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-04-05 17:40:22 +02:00
Klaas Freitag
7c138efd0e
Rename csync_errno_to_csync_error to csync_errno_to_csync_status.
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-04-05 17:40:21 +02:00
Klaas Freitag
f4ee205fe9
Minor code cleanups, warning avoidings and indentation.
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-04-05 17:40:21 +02:00
Klaas Freitag
aada909836
Use multibyte character in file system functions.
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-04-05 17:40:21 +02:00
Klaas Freitag
33d57eec3c
Remove parenthesis to make Win32 compile and happy.
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-04-05 17:40:21 +02:00
Klaas Freitag
f5c9458079
Define iconv conversions as thread safe varialbe instead of static.
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-04-05 17:40:21 +02:00
Klaas Freitag
72dddfd7f5
Introduce csync status codes for a more detailed error reporting.
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-04-05 17:40:21 +02:00
Klaas Freitag
10863cd32d
Add CSYNC_STATUS_CODE, a general csync status code.
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-04-05 17:40:21 +02:00
Klaas Freitag
f8f82a9af2
Added custom errnos for use with csync in addition to the system errnos.
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-04-05 17:40:21 +02:00
Andreas Schneider
e1edda17db
getpass: Don't fail if stdin is not a tty.
...
We don't need to manipulate the tty state (such as turning off echo)
when prompting for passwords if we're not reading from a tty.
2013-04-05 14:12:05 +02:00
Andreas Schneider
ab70947755
propagate: Fix renaming in the propagation.
2013-03-19 13:56:20 +01:00
Andreas Schneider
7d580916a8
modules: Add capabilities to smb module.
2013-03-19 13:46:06 +01:00
Andreas Schneider
029cdd4980
modules: Add capabilities to sftp module.
2013-03-19 13:45:50 +01:00
Andreas Schneider
480c97c487
cmake: Update compiler flags.
2013-03-14 10:10:41 +01:00
Andreas Schneider
2ef1c72726
std: Refactor c_rename().
2013-03-11 11:23:05 +01:00
Andreas Schneider
4c83526676
std: Implement error checks for c_iconv().
2013-03-11 11:13:21 +01:00
Andreas Schneider
862f83988f
tests: Update valgrind suppressions.
2013-03-08 18:50:26 +01:00
Andreas Schneider
0b5a83fc7f
tests: Fix memleaks in encoding test.
2013-03-08 18:50:26 +01:00
Andreas Schneider
13901b23f0
tests: Fix memleaks in vio test.
2013-03-08 18:50:22 +01:00
Klaas Freitag
2cc291c520
tests: Add treewalk test.
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-03-08 15:55:03 +01:00
Klaas Freitag
87c313485b
tests: Treewalk function unit tests added.
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-03-08 15:55:03 +01:00
Klaas Freitag
cf75a71b8b
Make use of push_to_tmp_first function.
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-03-08 15:55:03 +01:00
Klaas Freitag
d7a4a574ab
Add a vio capabilites function to let a module define its capabilities.
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-03-08 15:54:55 +01:00
Andreas Schneider
fc16af05a5
misc: Include stdio.h for snprintf.
2013-03-05 10:45:33 +01:00
Andreas Schneider
fdb2fe3ef9
misc: Correctly handle getenv().
...
The returned string of getenv() has an unknown size. You need to store
the result always in a char array with a certain size to make sure we
don't feed tainted data to the next function call.
2013-03-05 10:24:34 +01:00
Andreas Schneider
457086c63e
tests: Apply changes to the logging system.
2013-03-01 10:06:06 +01:00
Andreas Schneider
91d92bfa16
log: Add functions to set userdata for the logging callback.
2013-03-01 09:59:55 +01:00
Andreas Schneider
2d6514b509
owncloud: Fix some problems in the owncloud module.
...
Thanks to Patrick Buergi.
2013-02-19 08:36:46 +01:00
Andreas Schneider
11b539088e
client: Fix connection to a remote with password in it.
...
The password needs to be cleaned after we processed the uri.
Thanks to Patrick Buergi.
2013-02-19 08:35:20 +01:00
Andreas Schneider
fc2b860022
client: Fix setting the debug level.
...
Thanks to Patrick Buergi.
2013-02-19 08:34:44 +01:00