[Pkg-owncloud-commits] [owncloud-client] 47/121: excludes: Only log if the pattern was really logged. (#4989)
Sandro Knauß
hefee-guest at moszumanska.debian.org
Thu Jul 28 15:31:56 UTC 2016
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 191177ff22b3fec7e8213bf7c9d0e3be2e0540a9
Author: Klaas Freitag <freitag at owncloud.com>
Date: Mon Jun 20 15:50:20 2016 +0200
excludes: Only log if the pattern was really logged. (#4989)
---
csync/src/csync_exclude.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/csync/src/csync_exclude.c b/csync/src/csync_exclude.c
index bad25f8..d432781 100644
--- a/csync/src/csync_exclude.c
+++ b/csync/src/csync_exclude.c
@@ -52,7 +52,7 @@ int _csync_exclude_add(c_strlist_t **inList, const char *string) {
for (i = 0; i < (*inList)->count; ++i) {
char *pattern = (*inList)->vector[i];
if (c_streq(pattern, string)) {
- return 0;
+ return 1;
}
}
}
@@ -151,8 +151,10 @@ int csync_exclude_load(const char *fname, c_strlist_t **list) {
buf[i] = '\0';
if (*entry != '#') {
const char *unescaped = csync_exclude_expand_escapes(entry);
- CSYNC_LOG(CSYNC_LOG_PRIORITY_TRACE, "Adding entry: %s", unescaped);
rc = _csync_exclude_add(list, unescaped);
+ if( rc == 0 ) {
+ CSYNC_LOG(CSYNC_LOG_PRIORITY_TRACE, "Adding entry: %s", unescaped);
+ }
SAFE_FREE(unescaped);
if (rc < 0) {
goto out;
--
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