From 7921b8846730e0d7ddc32b4993b37ff36bff76c6 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 27 May 2008 13:51:58 +0200 Subject: [PATCH] Don't output on error if we remove a dir and errno is ENOTEMPTY. --- src/csync_propagate.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/csync_propagate.c b/src/csync_propagate.c index 931e2e0fb..30ebf5385 100644 --- a/src/csync_propagate.c +++ b/src/csync_propagate.c @@ -439,6 +439,7 @@ static int _csync_remove_dir(CSYNC *ctx, csync_file_stat_t *st) { if (csync_vio_rmdir(ctx, uri) < 0) { switch (errno) { case ENOMEM: + CSYNC_LOG(CSYNC_LOG_PRIORITY_FATAL, "dir: %s, command: rmdir, error: %s", uri, strerror(errno)); rc = -1; break; case ENOTEMPTY: @@ -463,10 +464,10 @@ static int _csync_remove_dir(CSYNC *ctx, csync_file_stat_t *st) { rc = 0; break; default: + CSYNC_LOG(CSYNC_LOG_PRIORITY_ERROR, "dir: %s, command: rmdir, error: %s", uri, strerror(errno)); rc = 1; break; } - CSYNC_LOG(CSYNC_LOG_PRIORITY_ERROR, "dir: %s, command: rmdir, error: %s", uri, strerror(errno)); goto out; }