[dovecot-cvs] dovecot/src/imap main.c,1.36,1.37
cras at procontrol.fi
cras at procontrol.fi
Sun Jul 6 00:33:21 EEST 2003
Update of /home/cvs/dovecot/src/imap
In directory danu:/tmp/cvs-serv27940/imap
Modified Files:
main.c
Log Message:
Moved all dotlocking code to lib/. Also we now use temp file + link() rather
than rely on working O_EXCL.
Index: main.c
===================================================================
RCS file: /home/cvs/dovecot/src/imap/main.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -d -r1.36 -r1.37
--- main.c 2 Jul 2003 00:57:24 -0000 1.36
+++ main.c 5 Jul 2003 20:33:19 -0000 1.37
@@ -9,6 +9,7 @@
#include "restrict-access.h"
#include "fd-close-on-exec.h"
#include "process-title.h"
+#include "randgen.h"
#include "module-dir.h"
#include "mail-storage.h"
#include "commands.h"
@@ -70,6 +71,10 @@
/* Log file or syslog opening probably requires roots */
open_logfile();
+ /* Most likely needed. Have to open /dev/urandom before possible
+ chrooting. */
+ random_init();
+
restrict_access_by_env(!IS_STANDALONE());
}
@@ -169,6 +174,7 @@
commands_deinit();
clients_deinit();
mail_storage_deinit();
+ random_deinit();
closelog();
}
More information about the dovecot-cvs
mailing list