[Pkg-owncloud-commits] [owncloud-client] 94/159: CSync: Log if file_id is too long
Sandro Knauß
hefee-guest at moszumanska.debian.org
Fri May 1 13:05:30 UTC 2015
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository owncloud-client.
commit fa80a006b85cf1274ef700eaf2e7e5b0fc4947c2
Author: Markus Goetz <markus at woboq.com>
Date: Mon Apr 13 14:58:25 2015 +0200
CSync: Log if file_id is too long
---
csync/src/vio/csync_vio_file_stat.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/csync/src/vio/csync_vio_file_stat.c b/csync/src/vio/csync_vio_file_stat.c
index ffbd102..7b64015 100644
--- a/csync/src/vio/csync_vio_file_stat.c
+++ b/csync/src/vio/csync_vio_file_stat.c
@@ -20,6 +20,7 @@
#include "c_lib.h"
#include "csync.h"
+#include "csync_log.h"
csync_vio_file_stat_t *csync_vio_file_stat_new(void) {
csync_vio_file_stat_t *file_stat = (csync_vio_file_stat_t *) c_malloc(sizeof(csync_vio_file_stat_t));
@@ -70,6 +71,7 @@ void csync_vio_file_stat_set_file_id( csync_vio_file_stat_t *dst, const char* sr
void csync_vio_set_file_id( char* dst, const char *src ) {
if( src && dst ) {
if( strlen(src) > FILE_ID_BUF_SIZE ) {
+ CSYNC_LOG(CSYNC_LOG_PRIORITY_ERROR, "Ignoring file_id because it is too long: %s", src);
strcpy(dst, "");
} else {
strcpy(dst, src);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list