aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/mbox
diff options
context:
space:
mode:
authorNotZed <NotZed@HelixCode.com>2000-03-04 04:28:04 +0800
committerMichael Zucci <zucchi@src.gnome.org>2000-03-04 04:28:04 +0800
commit519501b7fe4990db267e57b55bfda63490b5d6f8 (patch)
treefc26c24663309928bee51f12ba81aa7d30d4a9f9 /camel/providers/mbox
parent626f63df0b18cc891b7995a0b7202303efede45d (diff)
downloadgsoc2013-evolution-519501b7fe4990db267e57b55bfda63490b5d6f8.tar.gz
gsoc2013-evolution-519501b7fe4990db267e57b55bfda63490b5d6f8.tar.zst
gsoc2013-evolution-519501b7fe4990db267e57b55bfda63490b5d6f8.zip
Make sure we open with create with a creation mask.
2000-03-03 NotZed <NotZed@HelixCode.com> * providers/mbox/camel-mbox-utils.c (camel_mbox_write_xev): Make sure we open with create with a creation mask. 2000-03-01 NotZed <NotZed@HelixCode.com> * camel-mime-part-utils.c (camel_mime_part_construct_content_from_stream): DO NOT assert on content type, we have fallback code 4 lines below it ... *sigh* svn path=/trunk/; revision=2026
Diffstat (limited to 'camel/providers/mbox')
-rw-r--r--camel/providers/mbox/camel-mbox-utils.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/camel/providers/mbox/camel-mbox-utils.c b/camel/providers/mbox/camel-mbox-utils.c
index 3d45daa05f..aa2d19a079 100644
--- a/camel/providers/mbox/camel-mbox-utils.c
+++ b/camel/providers/mbox/camel-mbox-utils.c
@@ -176,7 +176,8 @@ camel_mbox_copy_file_chunk (gint fd_src,
do {
nb_read = read (fd_src, buffer, MIN (1000, nb_to_read));
} while (nb_read == -1 && errno == EINTR);
-
+
+
if (nb_read == -1) {
camel_exception_setv (ex,
CAMEL_EXCEPTION_FOLDER_INSUFFICIENT_PERMISSION,
@@ -237,7 +238,7 @@ camel_mbox_write_xev (gchar *mbox_file_name,
fd1 = open (mbox_file_name, O_RDONLY);
fd2 = open (tmp_file_name,
O_WRONLY | O_CREAT | O_TRUNC ,
- S_IRUSR | S_IWUSR);
+ S_IRUSR | S_IWUSR, 0600);
if (fd2 == -1) {
camel_exception_setv (ex,