dovecot-2.0: lib-storage: Use namespace owner user's home dir fo...

dovecot at dovecot.org dovecot at dovecot.org
Wed Nov 16 19:42:25 EET 2011


details:   http://hg.dovecot.org/dovecot-2.0/rev/ce08f9903c79
changeset: 12967:ce08f9903c79
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Nov 16 19:38:16 2011 +0200
description:
lib-storage: Use namespace owner user's home dir for autodetection (for shared namespaces).

diffstat:

 src/lib-storage/index/dbox-multi/mdbox-storage.c |  2 +-
 src/lib-storage/index/maildir/maildir-storage.c  |  2 +-
 src/lib-storage/index/mbox/mbox-storage.c        |  2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diffs (36 lines):

diff -r 6198fe13342c -r ce08f9903c79 src/lib-storage/index/dbox-multi/mdbox-storage.c
--- a/src/lib-storage/index/dbox-multi/mdbox-storage.c	Wed Nov 16 19:06:20 2011 +0200
+++ b/src/lib-storage/index/dbox-multi/mdbox-storage.c	Wed Nov 16 19:38:16 2011 +0200
@@ -87,7 +87,7 @@
 	bool debug = ns->mail_set->mail_debug;
 	const char *home, *path;
 
-	if (mail_user_get_home(ns->user, &home) > 0) {
+	if (mail_user_get_home(ns->owner, &home) > 0) {
 		path = t_strconcat(home, "/mdbox", NULL);
 		if (access(path, R_OK|W_OK|X_OK) == 0) {
 			if (debug)
diff -r 6198fe13342c -r ce08f9903c79 src/lib-storage/index/maildir/maildir-storage.c
--- a/src/lib-storage/index/maildir/maildir-storage.c	Wed Nov 16 19:06:20 2011 +0200
+++ b/src/lib-storage/index/maildir/maildir-storage.c	Wed Nov 16 19:38:16 2011 +0200
@@ -98,7 +98,7 @@
 
 	/* we'll need to figure out the maildir location ourself.
 	   It's ~/Maildir unless we are chrooted. */
-	if (mail_user_get_home(ns->user, &home) > 0) {
+	if (mail_user_get_home(ns->owner, &home) > 0) {
 		path = t_strconcat(home, "/Maildir", NULL);
 		if (access(path, R_OK|W_OK|X_OK) == 0) {
 			if (debug)
diff -r 6198fe13342c -r ce08f9903c79 src/lib-storage/index/mbox/mbox-storage.c
--- a/src/lib-storage/index/mbox/mbox-storage.c	Wed Nov 16 19:06:20 2011 +0200
+++ b/src/lib-storage/index/mbox/mbox-storage.c	Wed Nov 16 19:38:16 2011 +0200
@@ -247,7 +247,7 @@
 	bool debug = ns->mail_set->mail_debug;
 	const char *home, *path;
 
-	if (mail_user_get_home(ns->user, &home) <= 0) {
+	if (mail_user_get_home(ns->owner, &home) <= 0) {
 		if (debug)
 			i_debug("maildir: Home directory not set");
 		home = "";


More information about the dovecot-cvs mailing list