[Pkg-owncloud-commits] [owncloud-client] 116/218: csync_update: Handle error if current_fs is zero.

Sandro Knauß hefee-guest at moszumanska.debian.org
Sat Oct 17 14:30:55 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 6930cd6687eefaeb79fbd85c76b02424117f23d0
Author: Klaas Freitag <freitag at owncloud.com>
Date:   Fri Sep 11 18:12:24 2015 +0200

    csync_update: Handle error if current_fs is zero.
---
 csync/src/csync_update.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/csync/src/csync_update.c b/csync/src/csync_update.c
index 8b9a4b9..99570c2 100644
--- a/csync/src/csync_update.c
+++ b/csync/src/csync_update.c
@@ -637,9 +637,8 @@ int csync_ftw(CSYNC *ctx, const char *uri, csync_walker_fn fn,
               if( previous_fs ) {
                   previous_fs->has_ignored_files = true;
               }
+              goto done;
           }
-          goto done;
-          // previously return 0;
       } else if(errno == ENOENT) {
           asp = asprintf( &ctx->error_string, "%s", uri);
           if (asp < 0) {
@@ -661,6 +660,7 @@ int csync_ftw(CSYNC *ctx, const char *uri, csync_walker_fn fn,
               }
               goto done;
           }
+          /* if current_fs is not defined here, better throw an error */
       } else {
           CSYNC_LOG(CSYNC_LOG_PRIORITY_ERROR, "opendir failed for %s - errno %d", uri, errno);
       }

-- 
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