aboutsummaryrefslogtreecommitdiff
path: root/mail/balsa/files
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2004-11-25 02:14:13 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2004-11-25 02:14:13 +0000
commit535065f7b72d7f326a30bbbc54ff37f8efaacf78 (patch)
tree1590641e5f8a37c9f26afecb2303a0ef19edd2cd /mail/balsa/files
parent52679ee7131bc6ffab233f6c3e0471c14a8a1788 (diff)
downloadports-535065f7b72d7f326a30bbbc54ff37f8efaacf78.tar.gz
ports-535065f7b72d7f326a30bbbc54ff37f8efaacf78.zip
Notes
Diffstat (limited to 'mail/balsa/files')
-rw-r--r--mail/balsa/files/patch-libbalsa_mailbox_mbox.c19
-rw-r--r--mail/balsa/files/patch-src_balsa-app.c13
2 files changed, 19 insertions, 13 deletions
diff --git a/mail/balsa/files/patch-libbalsa_mailbox_mbox.c b/mail/balsa/files/patch-libbalsa_mailbox_mbox.c
new file mode 100644
index 000000000000..391f582b2926
--- /dev/null
+++ b/mail/balsa/files/patch-libbalsa_mailbox_mbox.c
@@ -0,0 +1,19 @@
+--- libbalsa/mailbox_mbox.c.orig Wed Nov 24 21:05:03 2004
++++ libbalsa/mailbox_mbox.c Wed Nov 24 21:06:54 2004
+@@ -27,6 +27,7 @@
+ #include <libgnome/libgnome.h>
+ #include <gmime/gmime-stream-fs.h>
+
++#include <sys/stat.h>
+ #include <stdlib.h>
+ #include <unistd.h>
+ #include <fcntl.h>
+@@ -195,7 +196,7 @@
+ if(!create)
+ return(-1);
+
+- if ((fd = creat(path, S_IRUSR | S_IWUSR)) == -1) {
++ if ((fd = open(path, O_CREAT | O_TRUNC | O_WRONLY, S_IRUSR | S_IWUSR)) == -1) {
+ g_warning("An error:\n%s\n occured while trying to "
+ "create the mailbox \"%s\"\n",
+ strerror(errno), path);
diff --git a/mail/balsa/files/patch-src_balsa-app.c b/mail/balsa/files/patch-src_balsa-app.c
deleted file mode 100644
index b93ab17fcee9..000000000000
--- a/mail/balsa/files/patch-src_balsa-app.c
+++ /dev/null
@@ -1,13 +0,0 @@
---- src/balsa-app.c.orig Fri Aug 6 17:43:17 2004
-+++ src/balsa-app.c Fri Aug 6 17:43:42 2004
-@@ -652,10 +652,6 @@
- BalsaFind bf;
- gboolean is_sub_thread = libbalsa_am_i_subthread();
-
--#ifdef BALSA_USE_THREADS
-- g_assert(!g_mutex_trylock(gdk_threads_mutex));
--#endif
--
- if (is_sub_thread)
- gdk_threads_enter();
-