[dovecot-cvs] dovecot/src/lib-storage/index/maildir maildir-storage.c, 1.115.2.17, 1.115.2.18

tss at dovecot.org tss at dovecot.org
Wed Jan 3 22:40:33 UTC 2007


Update of /var/lib/cvs/dovecot/src/lib-storage/index/maildir
In directory talvi:/tmp/cvs-serv9264/index/maildir

Modified Files:
      Tag: branch_1_0
	maildir-storage.c 
Log Message:
mail_full_filesystem_access=yes: If trying to access ~user directory for a user that doesn't exist, just treat it as a normal mailbox that begins with '~'. Before we created such mailboxes into home directory and trying to delete them crashed.



Index: maildir-storage.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/maildir/maildir-storage.c,v
retrieving revision 1.115.2.17
retrieving revision 1.115.2.18
diff -u -d -r1.115.2.17 -r1.115.2.18
--- maildir-storage.c	22 Dec 2006 14:20:31 -0000	1.115.2.17
+++ maildir-storage.c	3 Jan 2007 22:40:30 -0000	1.115.2.18
@@ -278,7 +278,10 @@
 {
 	const char *p;
 
-	name = home_expand(name);
+	if (home_try_expand(&name) < 0) {
+		/* fallback to using as ~name */
+		return name;
+	}
 
 	p = strrchr(name, '/');
 	if (p == NULL)



More information about the dovecot-cvs mailing list