[dovecot-cvs] dovecot/src/master master-settings.c,1.97,1.98

cras at dovecot.org cras at dovecot.org
Thu Jan 12 01:50:48 EET 2006


Update of /var/lib/cvs/dovecot/src/master
In directory talvi:/tmp/cvs-serv24409

Modified Files:
	master-settings.c 
Log Message:
/var/run/dovecot can be world-readable. Default to it, and don't try to
force any modes to it. All files and directories under it are already
protected properly.



Index: master-settings.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/master/master-settings.c,v
retrieving revision 1.97
retrieving revision 1.98
diff -u -d -r1.97 -r1.98
--- master-settings.c	11 Jan 2006 19:26:07 -0000	1.97
+++ master-settings.c	11 Jan 2006 23:50:46 -0000	1.98
@@ -11,6 +11,7 @@
 #include <stddef.h>
 #include <unistd.h>
 #include <fcntl.h>
+#include <sys/stat.h>
 #include <pwd.h>
 
 enum settings_type {
@@ -601,10 +602,7 @@
 
 	/* since they're under /var/run by default, they may have been
 	   deleted. */
-	if (safe_mkdir(set->base_dir, 0700, master_uid, getegid()) == 0) {
-		i_warning("Corrected permissions for base directory %s",
-			  set->base_dir);
-	}
+	(void)mkdir(set->base_dir, 0777);
 
 	if (!settings_have_connect_sockets(set)) {
 		/* we are not using external authentication, so make sure the



More information about the dovecot-cvs mailing list