[dovecot-cvs] dovecot/src/master mail-process.c,1.119,1.120

tss at dovecot.org tss at dovecot.org
Fri Mar 23 01:33:03 EET 2007


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

Modified Files:
	mail-process.c 
Log Message:
If chdir() failed, we still gave wrong reason



Index: mail-process.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/master/mail-process.c,v
retrieving revision 1.119
retrieving revision 1.120
diff -u -d -r1.119 -r1.120
--- mail-process.c	21 Mar 2007 22:52:20 -0000	1.119
+++ mail-process.c	22 Mar 2007 23:33:01 -0000	1.120
@@ -629,6 +629,7 @@
 		if (ret < 0 && (*chroot_dir != '\0' ||
 				!(ENOTFOUND(chdir_errno) ||
 				  chdir_errno == EINTR))) {
+			errno = chdir_errno;
 			i_fatal("chdir(%s) failed with uid %s: %m",
 				full_home_dir, dec2str(uid));
 		}



More information about the dovecot-cvs mailing list