[Commits] [SCM] claws branch, master, updated. 3.10.1-93-g82866a2
Colin
colin at claws-mail.org
Fri Jun 20 14:10:53 CEST 2014
The branch master of project "claws" (Claws Mail) has been updated
via 82866a247d82738273f915a45590e5ab0077fe19 (commit)
via 7d189b006c8df307a83cbe76407a79f8a8a03dde (commit)
from cf60d029921a8cf9f5a7775c79afc1acaa0d6f7a (commit)
Summary of changes:
src/mimeview.c | 3 ++-
src/plugins/archive/archiver_gtk.c | 3 ++-
src/plugins/mailmbox/maillock.c | 3 ++-
3 files changed, 6 insertions(+), 3 deletions(-)
- Log -----------------------------------------------------------------
commit 82866a247d82738273f915a45590e5ab0077fe19
Author: Colin Leroy <colin at colino.net>
Date: Fri Jun 20 14:10:35 2014 +0200
Fix unchecked return values. Patch by Christian Hesse
diff --git a/src/plugins/archive/archiver_gtk.c b/src/plugins/archive/archiver_gtk.c
index 52627f8..cc1c982 100644
--- a/src/plugins/archive/archiver_gtk.c
+++ b/src/plugins/archive/archiver_gtk.c
@@ -301,7 +301,8 @@ static void create_md5sum(const gchar* file, const gchar* md5_file) {
text = g_strdup_printf("%s %s\n", md5sum, file);
g_free(md5sum);
debug_print("md5sum: %s\n", text);
- write(fd, text, strlen(text));
+ if (write(fd, text, strlen(text)) < 0)
+ perror("write");
close(fd);
g_free(text);
}
diff --git a/src/plugins/mailmbox/maillock.c b/src/plugins/mailmbox/maillock.c
index 569bc94..8a42787 100644
--- a/src/plugins/mailmbox/maillock.c
+++ b/src/plugins/mailmbox/maillock.c
@@ -184,7 +184,8 @@ static int lock_common(const char * filename, int fd, short locktype)
fd = open(lockfilename, O_WRONLY|O_EXCL|O_CREAT, 0);
if (fd >= 0) {
/* defeat lock checking programs which test pid */
- write(fd, "0", 2);
+ if (write(fd, "0", 2) < 0)
+ perror("write");
close(fd);
break;
}
commit 7d189b006c8df307a83cbe76407a79f8a8a03dde
Author: Colin Leroy <colin at colino.net>
Date: Fri Jun 20 12:59:32 2014 +0200
Don't automatically re-check signatures
diff --git a/src/mimeview.c b/src/mimeview.c
index f63a522..7f4664b 100644
--- a/src/mimeview.c
+++ b/src/mimeview.c
@@ -1459,7 +1459,8 @@ static void mimeview_selected(GtkTreeSelection *selection, MimeView *mimeview)
}
}
- if (mimeview->siginfo && privacy_auto_check_signatures(mimeview->siginfo)) {
+ if (mimeview->siginfo && privacy_auto_check_signatures(mimeview->siginfo)
+ && privacy_mimeinfo_get_sig_status(mimeview->siginfo) == SIGNATURE_UNCHECKED) {
mimeview_check_signature(mimeview);
}
}
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list