aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2001-01-10 05:48:23 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-01-10 05:48:23 +0800
commitae70268af9521c3ec911b0361e3d943c5acc8a90 (patch)
treeeb8be7e68be0f73325cf79cf9d913e6909e2bb95
parentf39b89c39acf31ea4bdbd0a5bb74f2274434a45b (diff)
downloadgsoc2013-evolution-ae70268af9521c3ec911b0361e3d943c5acc8a90.tar
gsoc2013-evolution-ae70268af9521c3ec911b0361e3d943c5acc8a90.tar.gz
gsoc2013-evolution-ae70268af9521c3ec911b0361e3d943c5acc8a90.tar.bz2
gsoc2013-evolution-ae70268af9521c3ec911b0361e3d943c5acc8a90.tar.lz
gsoc2013-evolution-ae70268af9521c3ec911b0361e3d943c5acc8a90.tar.xz
gsoc2013-evolution-ae70268af9521c3ec911b0361e3d943c5acc8a90.tar.zst
gsoc2013-evolution-ae70268af9521c3ec911b0361e3d943c5acc8a90.zip
Let the system umask determine the permissions of this file.
2001-01-09 Jeffrey Stedfast <fejj@helixcode.com> * mail-ops.c (save_messages_save): Let the system umask determine the permissions of this file. svn path=/trunk/; revision=7341
-rw-r--r--mail/ChangeLog3
-rw-r--r--mail/mail-ops.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 2056b295b1..28060b4e2d 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,5 +1,8 @@
2001-01-09 Jeffrey Stedfast <fejj@helixcode.com>
+ * mail-ops.c (save_messages_save): Let the system umask determine
+ the permissions of this file.
+
* mail-config-druid.c (incoming_type_changed): Gray out the
appropriate labels too.
(auth_type_changed): And here.
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index 632958c458..6dec663e7b 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -1897,7 +1897,7 @@ static void save_messages_save(struct _mail_msg *mm)
int fd, i;
char *from;
- fd = open(m->path, O_WRONLY | O_CREAT | O_TRUNC, 0600);
+ 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));