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
Klaas Freitag
b167b6e2d8
Fix a leak and simplify code.
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-02-07 12:59:41 +01:00
Klaas Freitag
c2757cd7be
Make _tmkdir define argument aware to simplify the usage even more.
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-02-07 12:59:38 +01:00
Klaas Freitag
56afb2dc04
Fixed mem leaks in c_dir functions.
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-02-07 12:59:36 +01:00
Klaas Freitag
41021d58d5
tests: Ported more tests to be cross platform capable.
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-02-07 12:59:33 +01:00
Klaas Freitag
c7e60b5231
Renamed filename encoding functions.
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-02-07 12:59:31 +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
Klaas Freitag
1e61a03f32
Fix const warnings after revert of wrong SAFE_FREE patch.
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-02-06 15:11:41 +01:00
Klaas Freitag
877bf0c90f
Remove definition of _tcslen to avoid confusion.
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-02-06 15:11:41 +01:00
Klaas Freitag
5b6d971055
No more platform specific code in csync_vio_local.
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-02-06 15:11:41 +01:00
Klaas Freitag
5d9306c841
Deprecate blksize and blkcount of the stat struct. Not needed in csync.
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-02-06 15:11:41 +01:00
Klaas Freitag
0bc0181f91
Added c_rename function to do platform specific renaming.
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-02-06 15:11:41 +01:00
Klaas Freitag
390a307840
tests: Cleaned up some encoding tests.
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-02-06 15:11:41 +01:00
Klaas Freitag
c45ca25c28
Avoid crash in iconv destroy.
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-02-06 15:11:41 +01:00
Klaas Freitag
874a820426
Use correct variable type to make test build on win32.
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-02-06 15:11:41 +01:00
Klaas Freitag
4d3a30c21f
Fixed typo in variable name.
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-02-06 15:11:41 +01:00
Daniel Molkentin
9c0c693081
Add iconv support to convert charsets to different platforms.
2013-02-06 15:11:40 +01:00
Olivier Goffart
13bb5ca2c3
Fix memory leaks and some more multibyte conversoins.
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-02-06 14:44:40 +01:00
Klaas Freitag
6b3ac8c685
Use _tclosedir rather than closedir.
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-02-06 14:44:14 +01:00
Klaas Freitag
f2b9bc6d0d
Use wide char variable to remove directory.
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-02-06 14:43:49 +01:00
Klaas Freitag
7d0acf9ba3
Encoding test and make all tests work cross platform.
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-02-06 14:42:17 +01:00
Klaas Freitag
d2e5fc66fa
ownCloud: Added missing brackets.
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-02-06 14:39:58 +01:00
Klaas Freitag
e40a810187
Make client compile with picky compiler.
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-02-06 14:39:21 +01:00
Klaas Freitag
1d703ee6c4
Rename _TCHAR type to mbchar_t.
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-02-06 14:38:58 +01:00
Klaas Freitag
ce080d5ee1
Fix definition of tmp file name.
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-02-06 14:38:25 +01:00
Klaas Freitag
0e804ca685
Added wide character to utf8 and vice versa conversion functions.
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-02-06 14:37:51 +01:00
Klaas Freitag
201d0ec97c
Define abstractions for cross platform file operations with wide char.
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-02-06 14:37:11 +01:00
Klaas Freitag
b152b39e67
ownCloud: Use wide char aware file system functions.
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-02-06 14:36:29 +01:00
Klaas Freitag
9120098811
Use wide character abstraction functions for file operations.
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-02-06 14:27:53 +01:00
Klaas Freitag
922254ba94
Defined abstractions for basic file operations to use with wide char.
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-02-06 14:23:55 +01:00
Klaas Freitag
bd4c9b3a7f
Added wide character to utf8 and vice versa conversion functions.
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-02-06 14:23:14 +01:00