[Commits] [SCM] claws branch, master, updated. 4.3.0-56-g502efc7b7
wwp at claws-mail.org
wwp at claws-mail.org
Thu Jan 9 10:33:31 UTC 2025
The branch, master has been updated
via 502efc7b7bce9a2d373cfeb14359b1af92384912 (commit)
from 4220a91f1b97f14a36955f170865e504ac3d643e (commit)
Summary of changes:
src/imap.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit 502efc7b7bce9a2d373cfeb14359b1af92384912
Author: wwp <subscript at free.fr>
Date: Thu Jan 9 11:28:22 2025 +0100
Fix CID 1491370: unchecked return value.
diff --git a/src/imap.c b/src/imap.c
index 15233665e..d1ec86fe1 100644
--- a/src/imap.c
+++ b/src/imap.c
@@ -1916,8 +1916,11 @@ static gint imap_add_msgs(Folder *folder, FolderItem *dest, GSList *file_list,
gchar *cache_file = g_strconcat(
cache_path, G_DIR_SEPARATOR_S,
itos(new_uid), NULL);
- copy_file(real_file, cache_file, TRUE);
- debug_print("got UID %d, copied to cache: %s\n", new_uid, cache_file);
+ if (copy_file(real_file, cache_file, TRUE) < 0) {
+ g_warning("can't copy %s to %s.bak", real_file, cache_file);
+ } else {
+ debug_print("got UID %d, copied to cache: %s\n", new_uid, cache_file);
+ }
g_free(cache_file);
}
g_free(cache_path);
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list