diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-08-10 04:33:41 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-08-10 04:33:41 +0800 |
commit | 97e76a8703a1977143c5a0b19f5ad52021769575 (patch) | |
tree | 7edb985b66bf737b05e50b10da1e0101c7c57b0c /mail/mail-ops.c | |
parent | bfa7f88ced7715b3cdabb038e6f57c9784d0a8eb (diff) | |
download | gsoc2013-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/mail-ops.c')
-rw-r--r-- | mail/mail-ops.c | 7 |
1 files changed, 4 insertions, 3 deletions
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)); |