dovecot-2.0: Die if system hostname contains '/' character.
dovecot at dovecot.org
dovecot at dovecot.org
Tue May 25 18:31:43 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/4c28061ce7a6
changeset: 11366:4c28061ce7a6
user: Timo Sirainen <tss at iki.fi>
date: Tue May 25 16:31:39 2010 +0100
description:
Die if system hostname contains '/' character.
diffstat:
src/lib/hostpid.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (13 lines):
diff -r 2f7b7747867e -r 4c28061ce7a6 src/lib/hostpid.c
--- a/src/lib/hostpid.c Tue May 25 16:09:14 2010 +0100
+++ b/src/lib/hostpid.c Tue May 25 16:31:39 2010 +0100
@@ -20,6 +20,9 @@
hostname[sizeof(hostname)-1] = '\0';
my_hostname = hostname;
+ if (strchr(hostname, '/') != NULL)
+ i_fatal("Invalid system hostname: %s", hostname);
+
/* allow calling hostpid_init() multiple times to reset hostname */
i_free_and_null(my_domain);
More information about the dovecot-cvs
mailing list