[dovecot-cvs] dovecot/src/master main.c,1.63,1.64
cras at dovecot.org
cras at dovecot.org
Mon Aug 15 01:08:54 EEST 2005
Update of /var/lib/cvs/dovecot/src/master
In directory talvi:/tmp/cvs-serv18030
Modified Files:
main.c
Log Message:
The master process itself also needs the TZ environment
Index: main.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/master/main.c,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -d -r1.63 -r1.64
--- main.c 23 Jul 2005 21:33:50 -0000 1.63
+++ main.c 14 Aug 2005 22:08:51 -0000 1.64
@@ -629,13 +629,17 @@
if (exec_protocol != NULL)
mail_process_exec(exec_protocol, exec_section);
- /* save TZ environment for child processes. AIX depends on it to get
- the timezone correctly. */
+ /* save TZ environment. AIX depends on it to get the timezone
+ correctly. */
env_tz = getenv("TZ");
- /* we don't need any other environment anymore */
+ /* clean up the environment of everything */
env_clean();
+ /* put back the TZ */
+ if (env_tz != NULL)
+ env_put(t_strconcat("TZ=", env_tz, NULL));
+
open_fds();
if (!foreground)
More information about the dovecot-cvs
mailing list