dovecot-2.0: master: Make sure base_dir has at least 0755 permis...

dovecot at dovecot.org dovecot at dovecot.org
Wed Sep 1 18:55:19 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/bc5c9bd4bc7e
changeset: 12056:bc5c9bd4bc7e
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Sep 01 16:55:14 2010 +0100
description:
master: Make sure base_dir has at least 0755 permissions.

diffstat:

 src/master/master-settings.c |  4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diffs (14 lines):

diff -r a428dd6fe3e7 -r bc5c9bd4bc7e src/master/master-settings.c
--- a/src/master/master-settings.c	Wed Sep 01 16:40:53 2010 +0100
+++ b/src/master/master-settings.c	Wed Sep 01 16:55:14 2010 +0100
@@ -626,9 +626,7 @@
 		i_error("%s is not a directory", set->base_dir);
 		return FALSE;
 	}
-	if ((st.st_mode & 0777) == 0777) {
-		/* FIXME: backwards compatibility: v1.2 was creating
-		   base_dir with 0777 permissions.. */
+	if ((st.st_mode & 0755) != 0755) {
 		i_warning("Fixing permissions of %s to be world-readable",
 			  set->base_dir);
 		if (chmod(set->base_dir, 0755) < 0)


More information about the dovecot-cvs mailing list