aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog10
-rw-r--r--mail/folder-browser.c2
-rw-r--r--mail/mail-ops.c7
3 files changed, 15 insertions, 4 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 20905012c2..30e94c69c3 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,5 +1,15 @@
2001-08-09 Jeffrey Stedfast <fejj@ximian.com>
+ Fixes bug #6722
+
+ * mail-ops.c (save_messages_save): Don't set the default perms
+ here, let the user's umask deal with permissions.
+
+ * folder-browser.c (message_list_drag_data_get): Don't set any
+ default perms.
+
+2001-08-09 Jeffrey Stedfast <fejj@ximian.com>
+
* mail-account-gui.c (mail_account_gui_save): Save the pgp and
smime always-sign options.
diff --git a/mail/folder-browser.c b/mail/folder-browser.c
index 68c759cc43..7f6884b70d 100644
--- a/mail/folder-browser.c
+++ b/mail/folder-browser.c
@@ -253,7 +253,7 @@ message_list_drag_data_get (ETree *tree, int row, ETreePath path, int col,
uri_list = g_strdup_printf ("file://%s/%s", tmpdir, filename);
- fd = open (uri_list + 7, O_WRONLY | O_CREAT, 0600);
+ fd = open (uri_list + 7, O_WRONLY | O_CREAT);
if (fd == -1) {
/* cleanup and abort */
camel_object_unref (CAMEL_OBJECT (message));
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index 0608968e51..6f293502cc 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -1883,7 +1883,8 @@ build_from(struct _header_raw *header)
return ret;
}
-static void save_messages_save(struct _mail_msg *mm)
+static void
+save_messages_save (struct _mail_msg *mm)
{
struct _save_messages_msg *m = (struct _save_messages_msg *)mm;
CamelStreamFilter *filtered_stream;
@@ -1891,8 +1892,8 @@ static void save_messages_save(struct _mail_msg *mm)
CamelStream *stream;
int fd, i;
char *from;
-
- fd = open(m->path, O_WRONLY | O_CREAT | O_TRUNC, 0666);
+
+ fd = open (m->path, O_WRONLY | O_CREAT | O_TRUNC);
if (fd == -1) {
camel_exception_setv(&mm->ex, CAMEL_EXCEPTION_SYSTEM,
_("Unable to create output file: %s\n %s"), m->path, strerror(errno));