diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-12-12 00:24:24 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-12-12 00:24:24 +0800 |
commit | 0157f6598b42a8343dd8ef3251917b0d28bdbfe1 (patch) | |
tree | cbab0b9557126e9c0a1599b935f763c6bf95d668 | |
parent | 30920a80243aae0a5839c805e8993f77e9899854 (diff) | |
download | gsoc2013-evolution-0157f6598b42a8343dd8ef3251917b0d28bdbfe1.tar gsoc2013-evolution-0157f6598b42a8343dd8ef3251917b0d28bdbfe1.tar.gz gsoc2013-evolution-0157f6598b42a8343dd8ef3251917b0d28bdbfe1.tar.bz2 gsoc2013-evolution-0157f6598b42a8343dd8ef3251917b0d28bdbfe1.tar.lz gsoc2013-evolution-0157f6598b42a8343dd8ef3251917b0d28bdbfe1.tar.xz gsoc2013-evolution-0157f6598b42a8343dd8ef3251917b0d28bdbfe1.tar.zst gsoc2013-evolution-0157f6598b42a8343dd8ef3251917b0d28bdbfe1.zip |
EMailBackend: Remove some nuisance runtime warnings.
Similar to the previous commit, when renaming a folder.
-rw-r--r-- | mail/e-mail-backend.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/mail/e-mail-backend.c b/mail/e-mail-backend.c index ff2b8c8442..c4d5e8d3ec 100644 --- a/mail/e-mail-backend.c +++ b/mail/e-mail-backend.c @@ -637,10 +637,12 @@ mail_backend_folder_renamed_cb (MailFolderCache *folder_cache, newname = mail_backend_uri_to_evname (new_uri, cachenames[ii]); /* Ignore errors; doesn't matter. */ - if (g_rename (oldname, newname) == -1) { + if (g_rename (oldname, newname) == -1 && errno != ENOENT) { g_warning ( - "%s: Failed to rename '%s' to '%s': %s", G_STRFUNC, - oldname, newname, g_strerror (errno)); + "%s: Failed to rename '%s' to '%s': %s", + G_STRFUNC, + oldname, newname, + g_strerror (errno)); } g_free (oldname); |