[dovecot-cvs] dovecot/src/master mail-process.c,1.96,1.97

cras at dovecot.org cras at dovecot.org
Thu Jun 8 19:57:28 EEST 2006


Update of /var/lib/cvs/dovecot/src/master
In directory talvi:/tmp/cvs-serv18017

Modified Files:
	mail-process.c 
Log Message:
NFS check wasn't working if chrooting was used.



Index: mail-process.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/master/mail-process.c,v
retrieving revision 1.96
retrieving revision 1.97
diff -u -d -r1.96 -r1.97
--- mail-process.c	27 Apr 2006 12:26:34 -0000	1.96
+++ mail-process.c	8 Jun 2006 16:57:26 -0000	1.97
@@ -595,8 +595,11 @@
 		}
 	}
 
-	if (nfs_check)
+	if (nfs_check) {
+		if (*chroot_dir != '\0')
+			home_dir = t_strconcat(chroot_dir, "/", home_dir, NULL);
 		nfs_warn_if_found(getenv("MAIL"), home_dir);
+	}
 
 	env_put("LOGGED_IN=1");
 	env_put(t_strconcat("HOME=", home_dir, NULL));



More information about the dovecot-cvs mailing list