summaryrefslogtreecommitdiff
path: root/mail/balsa/files/patch-libbalsa_mailbox_mbox.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/balsa/files/patch-libbalsa_mailbox_mbox.c')
-rw-r--r--mail/balsa/files/patch-libbalsa_mailbox_mbox.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/mail/balsa/files/patch-libbalsa_mailbox_mbox.c b/mail/balsa/files/patch-libbalsa_mailbox_mbox.c
index d6843e323af4..2511938ff5de 100644
--- a/mail/balsa/files/patch-libbalsa_mailbox_mbox.c
+++ b/mail/balsa/files/patch-libbalsa_mailbox_mbox.c
@@ -1,5 +1,5 @@
---- libbalsa/mailbox_mbox.c.orig Tue Sep 20 13:01:57 2005
-+++ libbalsa/mailbox_mbox.c Thu Sep 22 20:32:25 2005
+--- libbalsa/mailbox_mbox.c.orig Tue Dec 27 14:54:34 2005
++++ libbalsa/mailbox_mbox.c Thu Dec 29 01:44:01 2005
@@ -26,6 +26,7 @@
#include <gmime/gmime-stream-fs.h>
@@ -8,12 +8,12 @@
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
-@@ -215,7 +216,7 @@ libbalsa_mailbox_mbox_create(const gchar
- if(!create)
- return(-1);
+@@ -214,7 +215,7 @@ lbm_mbox_check_files(const gchar * path,
+ } else if (create) {
+ gint fd;
-- if ((fd = creat(path, S_IRUSR | S_IWUSR)) == -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 occurred while trying to "
- "create the mailbox \"%s\"\n",
- strerror(errno), path);
+ g_warning("An error:\n%s\n occurred while trying to "
+ "create the mailbox \"%s\"\n",
+ strerror(errno), path);