changeset 597:99c7e303c92a HEAD

Drop root privileges before handling rawlog opening.
author Timo Sirainen <tss@iki.fi>
date Wed, 06 Nov 2002 16:33:27 +0200
parents ab3590c3a7d9
children 26691b7d6203
files src/imap/main.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/imap/main.c	Wed Nov 06 16:20:50 2002 +0200
+++ b/src/imap/main.c	Wed Nov 06 16:33:27 2002 +0200
@@ -27,7 +27,6 @@
 	hin = 0; hout = 1;
 
 	lib_init_signals(sig_quit);
-	rawlog_open(&hin, &hout);
 
 	i_snprintf(log_prefix, sizeof(log_prefix), "imap(%s)", getenv("USER"));
 
@@ -49,6 +48,8 @@
 	/* do the chrooting etc. */
 	restrict_access_by_env();
 
+	rawlog_open(&hin, &hout);
+
 	mail_storage_register_all();
 	clients_init();