changeset 3921:51cd47679f05 HEAD

Fix for 0777 check
author Timo Sirainen <tss@iki.fi>
date Sun, 22 Jan 2006 14:13:49 +0200
parents 382f0aafc2bf
children 344e4a729318
files src/master/master-settings.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/master/master-settings.c	Sun Jan 22 14:12:52 2006 +0200
+++ b/src/master/master-settings.c	Sun Jan 22 14:13:49 2006 +0200
@@ -650,7 +650,7 @@
 		i_error("lstat(%s) failed: %m", set->base_dir);
 		return FALSE;
 	}
-	if ((st.st_mode & 0750) != 0750 || (st.st_mode == 0777)) {
+	if ((st.st_mode & 0750) != 0750 || (st.st_mode & 0777) == 0777) {
 		/* FIXME: backwards compatibility: fix permissions so that
 		   login processes can find ssl-parameters file. Group rx is
 		   enough, but change it to world-rx so that we don't have to