Don't output on error if we remove a dir and errno is ENOTEMPTY.

This commit is contained in:
Andreas Schneider 2008-05-27 13:51:58 +02:00
parent 158ff9eba5
commit 7921b88467

View file

@ -439,6 +439,7 @@ static int _csync_remove_dir(CSYNC *ctx, csync_file_stat_t *st) {
if (csync_vio_rmdir(ctx, uri) < 0) { if (csync_vio_rmdir(ctx, uri) < 0) {
switch (errno) { switch (errno) {
case ENOMEM: case ENOMEM:
CSYNC_LOG(CSYNC_LOG_PRIORITY_FATAL, "dir: %s, command: rmdir, error: %s", uri, strerror(errno));
rc = -1; rc = -1;
break; break;
case ENOTEMPTY: case ENOTEMPTY:
@ -463,10 +464,10 @@ static int _csync_remove_dir(CSYNC *ctx, csync_file_stat_t *st) {
rc = 0; rc = 0;
break; break;
default: default:
CSYNC_LOG(CSYNC_LOG_PRIORITY_ERROR, "dir: %s, command: rmdir, error: %s", uri, strerror(errno));
rc = 1; rc = 1;
break; break;
} }
CSYNC_LOG(CSYNC_LOG_PRIORITY_ERROR, "dir: %s, command: rmdir, error: %s", uri, strerror(errno));
goto out; goto out;
} }