Commit Graph
100 Commits
Author SHA1 Message Date
Andreas Schneider 4a87a1ee35 tests: Package testfiles as xz archive. 2013-08-01 17:08:19 +02:00
Andreas Schneider de1df9a6d9 Update ChangeLog. 2013-08-01 17:04:09 +02:00
Andreas Schneider 354ef5e771 client: Fix strtol error check. 2013-08-01 10:37:02 +02:00
Andreas Schneider 7247eed4ac exclude: Try another fix for NULL termination.
Hopefully Coverity understand this better.

CID: #996807
2013-07-30 10:42:15 +02:00
Andreas Schneider b3bf209ca0 std: Fix stat timing problems.
CID: #1032801
2013-07-30 10:38:32 +02:00
Andreas Schneider 5e0cd2276c owncloud: Fix #ifdef mess. 2013-07-30 09:50:14 +02:00
Andreas Schneider 4ad8826f8a config: Fix a memory leak. 2013-07-30 09:42:14 +02:00
Andreas Schneider d80da2a088 LICENSE: Change license of libcsync from GPL to LGPL.
All contributors have agreed to change the license of libcsync to LGPL.
2013-07-29 14:04:37 +02:00
Andreas Schneider b6f9fdb96e cmake: Remove iniparser dependency.
BUG: https://open.cryptomilk.org/issues/5
2013-07-29 09:56:38 +02:00
Andreas Schneider 314664a1fd csync: Use new config parser. 2013-07-29 09:56:19 +02:00
Andreas Schneider acf3dc6aff config: Implement a new config parser. 2013-07-28 23:16:04 +02:00
Andreas Schneider 5d34417e76 exclude: Make sure the buffer is null terminated.
CID: #996807
2013-07-25 15:47:16 +02:00
Andreas Schneider 45cfcfc383 cmake: Pass _FORTIFY_SOURCE only to the precompiler. 2013-07-25 10:00:41 +02:00
Andreas Schneider 29a0c4ac35 tests: Update valgrind suppressions file. 2013-07-25 09:53:24 +02:00
Andreas Schneider b3ae26c6d2 tests: Load the sftp module for vio testing.
This has no memory leaks unlike smbclient.
2013-07-25 09:52:58 +02:00
Andreas Schneider d454a261ce owncloud: Fix a build warning. 2013-07-25 08:39:46 +02:00
Andreas Schneider dbd242442f update: Make sure ulen is initialized. 2013-07-25 08:36:23 +02:00
Andreas Schneider c00e401306 update: Make sure we don't have an invalid path pointer. 2013-07-24 16:01:00 +02:00
Andreas Schneider 7d1a61d68d cmake: Set nightly start time to UTC. 2013-07-24 16:01:00 +02:00
Andreas Schneider 866af5bf24 std: Add missing includes for memset and uintptr_t. 2013-07-15 08:05:19 +02:00
Andreas Schneider 73fa5f2224 std: Fix const handling on Linux and BSD. 2013-07-14 16:01:51 +02:00
Andreas Schneider 7c9de0230f cmake: Fix names of the include dirs. 2013-07-14 15:57:30 +02:00
Andreas Schneider 341e0e8967 cmake: Fix iconv detection on FreeBSD. 2013-07-14 15:51:09 +02:00
Andreas Schneider bdb3772e8f cmake: Fix argument order of get_filename_component(). 2013-07-14 15:39:40 +02:00
Andreas Schneider 5599573e2f cmake: Fix getting filename components. 2013-07-14 15:38:10 +02:00
Andreas Schneider 6b189316ab cmake: Require at least version 3.3.9 for sqlite3_prepare_v2(). 2013-07-13 09:17:40 +02:00
Andreas Schneider 1bae4f4dd4 Revert "CID 1033194: Fix resource leak in stateedb test."
This reverts commit c40a3844e0.

There is no leak and we expect it to be NULL. Since we fork here, it
doesn't matter if we leak memory in this case.
2013-07-13 08:57:56 +02:00
Andreas Schneider 9382a047ae cmake: Update FindNeon and add support for version checking. 2013-07-12 11:57:07 +02:00
Andreas Schneider c1e02db882 BUG 16: Correctly include iconv headers. 2013-07-12 11:32:15 +02:00
Andreas Schneider 81df0406eb cmake: Rewrite FindIconv from scratch.
This version supports BSD correctly.
2013-07-12 11:31:46 +02:00
Andreas Schneider 98ea781550 std: Define ENODATA if not present.
Fix for FreeBSD.
2013-07-08 18:28:37 +02:00
Andreas Schneider bd6608a33d tests: Refactor treewalk test. 2013-07-04 15:11:26 +02:00
Andreas Schneider 8f7900ee8f statedb: Make sure we call sqlite3_close on a valid pointer. 2013-07-04 12:26:22 +02:00
Andreas Schneider 47b436c279 vio: Add missing internal prototype. 2013-07-04 12:17:02 +02:00
Andreas Schneider bfdd73a0bc statedb: Fix a build error. 2013-07-04 12:16:47 +02:00
Andreas Schneider cd23f8d2d1 CID 1033195: Fix resource leak. 2013-07-04 11:57:31 +02:00
Andreas Schneider bd6a66d51e tests: Fix a resource leak. 2013-07-04 11:55:55 +02:00
Andreas Schneider a1628c8111 vio: Make csync_vio_getfd() useable by the module. 2013-07-04 11:30:54 +02:00
Andreas Schneider d43b382089 tests: Fix testing the vio plugins. 2013-07-04 10:29:48 +02:00
Andreas Schneider cccbb6699a cmake: Find SMBClient correctly. 2013-07-04 10:29:48 +02:00
Andreas Schneider 8953ed544c statedb: Remove context where it isn't needed. 2013-07-04 10:29:48 +02:00
Andreas Schneider d05b077851 statedb: Always pass down the db pointer. 2013-07-04 10:29:19 +02:00
Andreas Schneider 22477b23a6 statedb: Never overwrite data set by the user!
Only a user of csync is allowed to call csync_set_userdata(). Never call
this inside of csync cause you will overwrite the data pointer and
information is lost!
2013-06-23 14:50:49 +02:00
Andreas Schneider 3043b97815 cmake: Use pkg-config for libsmbclient. 2013-06-16 21:37:03 +02:00
Andreas Schneider d19a652993 cmake: Fix -D_FORTIFY_SOURCE detection. 2013-06-10 16:17:43 +02:00
Andreas Schneider d864899ff1 src: Fix a build warning. 2013-06-10 16:17:33 +02:00
Andreas Schneider 85a858b7ed src: Fix creating the inode system on 32bit system. 2013-06-10 16:08:14 +02:00
Andreas Schneider 9409d1c96e If there is no vio commit function don't fail. 2013-04-24 14:35:19 +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
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 SchneiderandKlaas Freitag df2a04b4ab misc: Include stdio.h for snprintf. 2013-03-19 14:18:12 +01:00
Andreas SchneiderandKlaas Freitag 061fa6cc1b 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-19 14:17:44 +01: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
Andreas SchneiderandKlaas Freitag 8d43a743a1 misc: Include stdio.h for snprintf. 2013-03-05 10:49:08 +01:00
Andreas Schneider fc16af05a5 misc: Include stdio.h for snprintf. 2013-03-05 10:45:33 +01:00
Andreas SchneiderandKlaas Freitag 3041e73b0a 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:43:28 +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
Andreas Schneider 87aee96b98 update: Fix a memleak in the file tree walker.
Reviewed-by: Klaas Freitag <freitag@owncloud.com>
2013-02-07 12:56:03 +01:00
Andreas Schneider 7cb8763e13 cmake: Don't copy and install deprecated csync_log.conf. 2013-02-06 18:20:39 +01:00
Andreas Schneider 5baf362af0 Revert "WIP"
This reverts commit acd7080329.

Oops :)
2013-02-06 18:18:04 +01:00
Andreas Schneider acd7080329 WIP 2013-02-06 17:48:19 +01:00
Andreas Schneider 8b7cab119b std: Add discard_const macros. 2013-01-30 16:09:51 +01:00
Andreas Schneider c795010988 log: Use a thread local variable for logging callback. 2012-12-18 14:25:35 +01:00
Andreas Schneider 490d3016e6 priv: Remove log_verbosity variable. 2012-12-18 14:16:50 +01:00
Andreas Schneider 9a539526f1 log: Use a thread local variable for the log level. 2012-12-17 09:40:17 +01:00
Andreas Schneider 28c6c9a6df std: Add missing copyright header for c_dir.c. 2012-12-15 12:37:47 +01:00
Andreas Schneider 7fefdc1800 modules: Fix csync_dummy modules license header. 2012-12-04 13:51:11 +01:00
Andreas Schneider 0a9cca8441 modules: Fix csync_owncloud module license header. 2012-12-04 13:50:14 +01:00
Andreas Schneider c4f46608dc modules: Fix csync_smb module license header. 2012-12-04 13:49:40 +01:00
Andreas Schneider 9ca550f93a modules: Remove csync_sftp2 module. 2012-12-04 13:48:31 +01:00
Andreas Schneider c2ced426ef modules: Fix csync_sftp module license header. 2012-12-04 13:48:13 +01:00
Andreas Schneider 2752a9e9c0 tests: Remove the right directory in the teardown function. 2012-10-30 14:49:18 +01:00
Andreas Schneider e3e00b4b32 tests: Add a csync_log test. 2012-10-30 11:39:51 +01:00
Andreas Schneider dd60412a50 doc: Remove all references to log4c. 2012-10-30 11:27:21 +01:00
Andreas Schneider 0a6d7435b5 cmake: Get rid of log4c. 2012-10-30 11:27:21 +01:00
Andreas Schneider 0179c2249d statedb: Log an error if we can't open the database. 2012-10-30 11:27:21 +01:00
Andreas Schneider b43f6690d5 client: Add setting the debug level. 2012-10-30 11:27:21 +01:00
Andreas Schneider 8a0b4319d3 csync: Add a new logging system. 2012-10-30 11:27:21 +01:00
Andreas Schneider 95b367dd23 csync: Add option to set and get log verbosity. 2012-10-30 11:27:20 +01:00
Andreas Schneider 890df87d00 csync: Add support for a log callback. 2012-10-30 11:27:20 +01:00
Andreas Schneider 805621540a csync: Move auth callback to a common struct. 2012-10-27 15:29:00 +02:00
Andreas Schneider 14f03e0ebb exclude: Simplify the csync_excluded() loop.
Thanks to Klaas Freitag.
2012-10-22 15:32:28 +02:00
Andreas Schneider e43466d09d tests: Add exclude test for journal db names. 2012-10-22 15:13:52 +02:00
Andreas Schneider 51ce3bea37 exclude: Reduce memory allocations of csync_excluded(). 2012-10-22 15:13:02 +02:00
Andreas Schneider 9b11339a9e util: Remove obsolete csync_create_statedb_hash(). 2012-10-22 14:55:26 +02:00