[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-133-g531f47d9b
miras at claws-mail.org
miras at claws-mail.org
Thu Sep 9 21:18:47 UTC 2021
The branch, gtk3 has been updated
via 531f47d9bac2e07eff0b6827fd69657b3eff0721 (commit)
from 882bb4d6f159ab7601042a1f35f06a6e34a73385 (commit)
Summary of changes:
src/plugins/archive/libarchive_archive.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit 531f47d9bac2e07eff0b6827fd69657b3eff0721
Author: Michael Rasmussen <mir at datanom.net>
Date: Thu Sep 9 23:18:26 2021 +0200
Fix CID 1491392
Signed-off-by: Michael Rasmussen <mir at datanom.net>
diff --git a/src/plugins/archive/libarchive_archive.c b/src/plugins/archive/libarchive_archive.c
index a8819d8f6..431458333 100644
--- a/src/plugins/archive/libarchive_archive.c
+++ b/src/plugins/archive/libarchive_archive.c
@@ -250,13 +250,15 @@ void archive_free_file_list(gboolean md5, gboolean rename) {
if (!rename && md5 && g_str_has_suffix(file->name, ".md5")) {
path = g_strdup_printf("%s/%s", file->path, file->name);
debug_print("unlinking %s\n", path);
- g_unlink(path);
+ if (g_unlink(path) < 0)
+ FILE_OP_ERROR(path, "g_unlink");
g_free(path);
}
if (rename) {
path = g_strdup_printf("%s/%s", file->path, file->name);
debug_print("unlinking %s\n", path);
- g_unlink(path);
+ if (g_unlink(path) < 0)
+ FILE_OP_ERROR(path, "g_unlink");
g_free(path);
}
archive_free_file_info(file);
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list