From 944861b19874e2066c412d1dabf09ce00cc35586 Mon Sep 17 00:00:00 2001
From: Jeffrey Stedfast <fejj@ximian.com>
Date: Mon, 23 Sep 2002 21:10:28 +0000
Subject: Use 0666 as the create mode so that the user's umask is used to it's

2002-09-23  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-ops.c (save_part_save): Use 0666 as the create mode so that
	the user's umask is used to it's fullest.

svn path=/trunk/; revision=18182
---
 mail/ChangeLog  | 5 +++++
 mail/mail-ops.c | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

(limited to 'mail')

diff --git a/mail/ChangeLog b/mail/ChangeLog
index d94c473a92..6197aa6480 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2002-09-23  Jeffrey Stedfast  <fejj@ximian.com>
+
+	* mail-ops.c (save_part_save): Use 0666 as the create mode so that
+	the user's umask is used to it's fullest.
+
 2002-09-23  Dan Winship  <danw@ximian.com>
 
 	* Makefile.am (idldir, idl_DATA): add these and install Mailer.idl
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index 45d8c33864..f00a25f555 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -2035,7 +2035,7 @@ save_part_save (struct _mail_msg *mm)
 	CamelDataWrapper *data;
 	const char *charset;
 	
-	stream_fs = camel_stream_fs_new_with_name (m->path, O_WRONLY | O_CREAT | O_TRUNC, 0600);
+	stream_fs = camel_stream_fs_new_with_name (m->path, O_WRONLY | O_CREAT | O_TRUNC, 0666);
 	if (stream_fs == NULL) {
 		camel_exception_setv (&mm->ex, CAMEL_EXCEPTION_SYSTEM,
 				      _("Cannot create output file: %s:\n %s"),
-- 
cgit v1.2.3