Age | Commit message (Collapse) | Author | Files | Lines |
|
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
|
|
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
|
|
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
|
|
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
|
|
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
|
|
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
|
|
|
|
|
|
|
|
|
|
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
|
|
csync_vio_local_stat doesn't allocate buf, so it shouldn't fee it (it
may be a buffer on the stack). If stat fails and -1 is returned,
csync_ftw will free buf by itself, as it has also allocated it.
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
|
|
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
|
|
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
|
|
The two cases are exactly the same
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
|
|
Otherwise c_tmpname would fail, when the first temporary file name
already exists. Thus, csync would give up on this file instead of
trying a different file names.
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
|
|
It's very unlikely that the error code is unknown.
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
|
|
Tell the user what exactly failed, so he might be able to identify the
problem.
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
|
|
Note: On windows strerror_r is no avaible and is emulated in
a thread-unsafe way.
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
|
|
Set the values to a non-standard value in the test before loading the
config file, and check whether they got set correctly.
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
|
|
On Windows or with iconv, the string would have been deleted before we
create the directory. Though the mkdir() function would fail.
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
|
|
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
|
|
We have defined _GNU_SOURCE all over the code to get the GNU specific
asprintf, but this makes a GNU specific strerror_r function avaible,
wich is incompatible with the expected XSI compliant verions.
Defining _GNU_SOURCE only for stdio.h and undefining afterwars is very
hard, because stdio.h is also included by many other headerfiles, so we
would need to make sure, stdio.h included before everything else.
On top of this, there's the problem that windows doesn't support
strerror_r, so we have a workaround which emulates strerror_r
with snprintf.
Though it's easier to use a seperate compilation unit and use a wrapper
function, to ensure the right feature test macros and workarounds
are used.
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
|
|
Initialize rc with -1, so that the next if statement evaluates to true.
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
|
|
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
|
|
This fixes compilation with newer GCC versions.
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
|
|
libssh provides cmake find files now.
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
|
|
|
|
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
|
|
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
|
|
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
|
|
Signed-off-by: Andreas Schneider <asn@samba.org>
|
|
+ Added option WITH_LOCAL_PLUGINDIR thus allowing for storage of plugins
in the same directory as the executable.
+ Added option WITH_STATIC_LIB for building an additional static version of
librsync.
+ Changed a few CMAKE_SOURCE to CMAKE_CURRENT_SOURCE
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
|
|
|
|
We need CheckPrototypeDefinition.
|
|
|
|
|
|
|
|
This fixes the build on SLES11.
|
|
|
|
It can return NULL on uris like owncloud://owncloud.example.com/
and this will lead to crashes if we don't error out early when this
happens.
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
|
|
Calling _cleanPath() with an URI with no path (eg
owncloud://owncloud.example.com) would result in a crash in
_cleanPath().
This was fixed in 2d6514b5 but part of the fix was silently lost in
3de8a78e during refactoring.
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
|
|
|
|
|
|
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
|
|
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
|
|
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
|
|
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
|
|
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
|
|
|