[dovecot-cvs] dovecot/src/master settings.c,1.24,1.25
cras at procontrol.fi
cras at procontrol.fi
Sun Dec 1 23:51:45 EET 2002
Update of /home/cvs/dovecot/src/master
In directory danu:/tmp/cvs-serv20535
Modified Files:
settings.c
Log Message:
Check ssl/log settings while starting up.
Index: settings.c
===================================================================
RCS file: /home/cvs/dovecot/src/master/settings.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- settings.c 1 Dec 2002 13:48:50 -0000 1.24
+++ settings.c 1 Dec 2002 21:51:43 -0000 1.25
@@ -186,6 +186,27 @@
set_imap_executable);
}
+ if (set_log_path != NULL) {
+ if (access(set_log_path, W_OK) < 0) {
+ i_fatal("Can't access log directory %s: %m",
+ set_log_path);
+ }
+ }
+
+#ifdef HAVE_SSL
+ if (!set_ssl_disable) {
+ if (access(set_ssl_cert_file, R_OK) < 0) {
+ i_fatal("Can't use SSL certificate %s: %m",
+ set_ssl_cert_file);
+ }
+
+ if (access(set_ssl_key_file, R_OK) < 0) {
+ i_fatal("Can't use SSL key file %s: %m",
+ set_ssl_key_file);
+ }
+ }
+#endif
+
/* since they're under /var/run by default, they may have been
deleted */
(void)mkdir(PKG_RUNDIR, 0700);
More information about the dovecot-cvs
mailing list