mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-22 13:05:51 +03:00
Don't output on error if we remove a dir and errno is ENOTEMPTY.
This commit is contained in:
parent
158ff9eba5
commit
7921b88467
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue