[dovecot-cvs] dovecot/src/master mail-process.c, 1.96.2.20, 1.96.2.21

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


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

Modified Files:
      Tag: branch_1_0
	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.96.2.20
retrieving revision 1.96.2.21
diff -u -d -r1.96.2.20 -r1.96.2.21
--- mail-process.c	21 Mar 2007 22:52:17 -0000	1.96.2.20
+++ mail-process.c	22 Mar 2007 23:32:58 -0000	1.96.2.21
@@ -631,6 +631,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