dovecot-2.0: script: Clear environment before running the script.

dovecot at dovecot.org dovecot at dovecot.org
Fri Jun 4 17:12:00 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/c7ab127fe8ae
changeset: 11468:c7ab127fe8ae
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Jun 04 15:11:55 2010 +0100
description:
script: Clear environment before running the script.

diffstat:

 src/util/script.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (19 lines):

diff -r 3b25ca20f005 -r c7ab127fe8ae src/util/script.c
--- a/src/util/script.c	Wed Jun 02 20:10:23 2010 +0100
+++ b/src/util/script.c	Fri Jun 04 15:11:55 2010 +0100
@@ -3,6 +3,7 @@
 #include "lib.h"
 #include "array.h"
 #include "str.h"
+#include "env-util.h"
 #include "execv-const.h"
 #include "master-interface.h"
 #include "master-service.h"
@@ -84,6 +85,7 @@
 	if (close(conn->fd) < 0)
 		i_error("close() failed: %m");
 
+	env_clean();
 	args = array_idx(&exec_args, 0);
 	execvp_const(args[0], args);
 }


More information about the dovecot-cvs mailing list