mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-22 21:15:55 +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) {
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue