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

tss-movial at dovecot.org tss-movial at dovecot.org
Fri May 12 11:21:28 EEST 2006


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

Modified Files:
      Tag: branch_1_0
	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.96.2.1
diff -u -d -r1.96 -r1.96.2.1
--- mail-process.c	27 Apr 2006 12:26:34 -0000	1.96
+++ mail-process.c	12 May 2006 08:21:26 -0000	1.96.2.1
@@ -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