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

cras at dovecot.org cras at dovecot.org
Thu Apr 27 15:26:37 EEST 2006


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

Modified Files:
	mail-process.c 
Log Message:
Don't validate uid/gid when executing imap for dump-capability



Index: mail-process.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/master/mail-process.c,v
retrieving revision 1.95
retrieving revision 1.96
diff -u -d -r1.95 -r1.96
--- mail-process.c	22 Apr 2006 09:18:48 -0000	1.95
+++ mail-process.c	27 Apr 2006 12:26:34 -0000	1.96
@@ -438,8 +438,10 @@
 		home_dir = p + 3;
 	}
 
-	if (!validate_uid_gid(set, uid, gid, user))
-		return FALSE;
+	if (!dump_capability) {
+		if (!validate_uid_gid(set, uid, gid, user))
+			return FALSE;
+	}
 
 	if (*chroot_dir == '\0' && set->mail_chroot != NULL)
 		chroot_dir = set->mail_chroot;



More information about the dovecot-cvs mailing list