dovecot-1.3: mail-storage-service: Don't do userdb lookups to ge...

dovecot at dovecot.org dovecot at dovecot.org
Mon Apr 13 22:13:26 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.3/rev/a06b6fa612ad
changeset: 9090:a06b6fa612ad
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Apr 13 15:13:21 2009 -0400
description:
mail-storage-service: Don't do userdb lookups to get a missing home if it's not wanted.

diffstat:

1 file changed, 1 insertion(+), 2 deletions(-)
src/lib-storage/mail-storage-service.c |    3 +--

diffs (13 lines):

diff -r ebec4c879cc3 -r a06b6fa612ad src/lib-storage/mail-storage-service.c
--- a/src/lib-storage/mail-storage-service.c	Mon Apr 13 14:20:03 2009 -0400
+++ b/src/lib-storage/mail-storage-service.c	Mon Apr 13 15:13:21 2009 -0400
@@ -336,8 +336,7 @@ mail_storage_service_init_post(struct ma
 	}
 
 	mail_user = mail_user_alloc(user, user_set);
-	if (*home != '\0')
-		mail_user_set_home(mail_user, home);
+	mail_user_set_home(mail_user, *home == '\0' ? NULL : home);
 	mail_user_set_vars(mail_user, geteuid(), service->name, NULL, NULL);
 	if (mail_user_init(mail_user, error_r) < 0) {
 		mail_user_unref(&mail_user);


More information about the dovecot-cvs mailing list