dovecot-2.1: master: If instance_name doesn't begin with "doveco...

dovecot at dovecot.org dovecot at dovecot.org
Mon Feb 6 21:42:44 EET 2012


details:   http://hg.dovecot.org/dovecot-2.1/rev/26885fe20e1f
changeset: 14070:26885fe20e1f
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Feb 06 21:42:37 2012 +0200
description:
master: If instance_name doesn't begin with "dovecot", add "dovecot-" prefix to process names.

diffstat:

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

diffs (12 lines):

diff -r 3fa544e4f26b -r 26885fe20e1f src/master/main.c
--- a/src/master/main.c	Mon Feb 06 21:39:11 2012 +0200
+++ b/src/master/main.c	Mon Feb 06 21:42:37 2012 +0200
@@ -85,6 +85,8 @@
 	/* prefix with dovecot/ */
 	argv[0] = t_strdup_printf("%s/%s", services->set->instance_name,
 				  argv[0]);
+	if (strncmp(argv[0], PACKAGE, strlen(PACKAGE)) != 0)
+		argv[0] = t_strconcat(PACKAGE"-", argv[0], NULL);
 	(void)execv_const(executable, argv);
 }
 


More information about the dovecot-cvs mailing list