dovecot-2.0-sslstream: Don't allow relative home directory paths.

dovecot at dovecot.org dovecot at dovecot.org
Sat Feb 13 02:55:20 EET 2010


details:   http://hg.dovecot.org/dovecot-2.0-sslstream/rev/cb2882c142e1
changeset: 10122:cb2882c142e1
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Oct 20 20:23:10 2009 -0400
description:
Don't allow relative home directory paths.

diffstat:

1 file changed, 6 insertions(+)
src/lib-storage/mail-storage-service.c |    6 ++++++

diffs (16 lines):

diff -r b584904d3bc7 -r cb2882c142e1 src/lib-storage/mail-storage-service.c
--- a/src/lib-storage/mail-storage-service.c	Tue Oct 20 20:19:05 2009 -0400
+++ b/src/lib-storage/mail-storage-service.c	Tue Oct 20 20:23:10 2009 -0400
@@ -562,6 +562,12 @@ init_user_real(struct master_service *se
 		}
 	}
 
+	if (*home != '/') {
+		i_fatal("user %s: Relative home directory paths not supported: "
+			"%s", input.username, home);
+
+	}
+
 	len = strlen(user_set->mail_chroot);
 	if (len > 2 && strcmp(user_set->mail_chroot + len - 2, "/.") == 0 &&
 	    strncmp(home, user_set->mail_chroot, len - 2) == 0) {


More information about the dovecot-cvs mailing list