From 519501b7fe4990db267e57b55bfda63490b5d6f8 Mon Sep 17 00:00:00 2001 From: NotZed Date: Fri, 3 Mar 2000 20:28:04 +0000 Subject: Make sure we open with create with a creation mask. 2000-03-03 NotZed * providers/mbox/camel-mbox-utils.c (camel_mbox_write_xev): Make sure we open with create with a creation mask. 2000-03-01 NotZed * 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 --- camel/providers/mbox/camel-mbox-utils.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'camel/providers') 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, -- cgit v1.2.3