On Tue, 2009-05-26 at 09:35 +0200, Andre Hübner wrote:
> > Does the problem go away if you don't configure Dovecot with
> > --enable-devel-checks?
> 
> no, its not included in my configure-line. This is it:
..
> --enable-debug

This is what I meant actually, the name just changed in v1.2.

What do you get with the attached patch?
diff -r 140bd7523890 src/plugins/expire/auth-client.c
--- a/src/plugins/expire/auth-client.c	Sun May 31 19:32:54 2009 -0400
+++ b/src/plugins/expire/auth-client.c	Sun May 31 19:39:45 2009 -0400
@@ -138,8 +138,11 @@
 		return;
 	}
 
-	if (conn->orig_uid == 0 || getegid() != gid)
-		env_put(t_strconcat("RESTRICT_SETGID=", dec2str(gid), NULL));
+	if (conn->orig_uid == 0 || getegid() != gid) {
+		const char *s = dec2str(gid);
+		i_warning("gid=%s", s);
+		env_put(t_strconcat("RESTRICT_SETGID=", s, NULL));
+	}
 
 	if (uid != conn->current_uid && conn->current_uid != 0) {
 		if (seteuid(0) != 0)

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to