aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-08-10 04:33:41 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-08-10 04:33:41 +0800
commit97e76a8703a1977143c5a0b19f5ad52021769575 (patch)
tree7edb985b66bf737b05e50b10da1e0101c7c57b0c /mail
parentbfa7f88ced7715b3cdabb038e6f57c9784d0a8eb (diff)
downloadgsoc2013-evolution-97e76a8703a1977143c5a0b19f5ad52021769575.tar.gz
gsoc2013-evolution-97e76a8703a1977143c5a0b19f5ad52021769575.tar.zst
gsoc2013-evolution-97e76a8703a1977143c5a0b19f5ad52021769575.zip
Fixes bug #6722
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. svn path=/trunk/; revision=11842
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));