changeset 8900:87c23fa4278e HEAD

Removed umask setting. We're nowadays creating practically all files with proper umasks.
author Timo Sirainen <tss@iki.fi>
date Thu, 02 Apr 2009 19:08:50 -0400
parents 0e0ce37ef99d
children 703214a10642
files src/master/mail-process.c src/master/master-settings-defs.c src/master/master-settings.c src/master/master-settings.h
diffstat 4 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/master/mail-process.c	Thu Apr 02 18:25:58 2009 -0400
+++ b/src/master/mail-process.c	Thu Apr 02 19:08:50 2009 -0400
@@ -384,7 +384,7 @@
 	   (e.g. epoll_ctl() gives EPERM). */
 	if (set->shutdown_clients && !exec_mail)
 		env_put("STDERR_CLOSE_SHUTDOWN=1");
-	(void)umask(set->umask);
+	(void)umask(0077);
 
 	env_put(t_strconcat("LOCK_METHOD=", set->lock_method, NULL));
 	env_put(t_strconcat("MBOX_READ_LOCKS=", set->mbox_read_locks, NULL));
--- a/src/master/master-settings-defs.c	Thu Apr 02 18:25:58 2009 -0400
+++ b/src/master/master-settings-defs.c	Thu Apr 02 19:08:50 2009 -0400
@@ -99,7 +99,6 @@
 	DEF_INT(dbox_rotate_size),
 	DEF_INT(dbox_rotate_min_size),
 	DEF_INT(dbox_rotate_days),
-	DEF_INT(umask),
 	DEF_BOOL(mail_drop_priv_before_exec),
 
 	DEF_STR(mail_executable),
--- a/src/master/master-settings.c	Thu Apr 02 18:25:58 2009 -0400
+++ b/src/master/master-settings.c	Thu Apr 02 19:08:50 2009 -0400
@@ -265,7 +265,6 @@
 	MEMBER(dbox_rotate_size) 2048,
 	MEMBER(dbox_rotate_min_size) 16,
 	MEMBER(dbox_rotate_days) 1,
-	MEMBER(umask) 0077,
 	MEMBER(mail_drop_priv_before_exec) FALSE,
 
 	MEMBER(mail_executable) PKG_LIBEXECDIR"/imap",
--- a/src/master/master-settings.h	Thu Apr 02 18:25:58 2009 -0400
+++ b/src/master/master-settings.h	Thu Apr 02 19:08:50 2009 -0400
@@ -111,7 +111,6 @@
 	unsigned int dbox_rotate_size;
 	unsigned int dbox_rotate_min_size;
 	unsigned int dbox_rotate_days;
-	unsigned int umask;
 	bool mail_drop_priv_before_exec;
 
 	const char *mail_executable;