dovecot-1.1: expire-tool: Crashfix when having to change GID.

dovecot at dovecot.org dovecot at dovecot.org
Tue May 19 23:01:08 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.1/rev/18c2e4ee94eb
changeset: 8281:18c2e4ee94eb
user:      Timo Sirainen <tss at iki.fi>
date:      Tue May 19 16:01:03 2009 -0400
description:
expire-tool: Crashfix when having to change GID.

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/plugins/expire/auth-client.c |    2 +-

diffs (12 lines):

diff -r 1d7bedb6f100 -r 18c2e4ee94eb src/plugins/expire/auth-client.c
--- a/src/plugins/expire/auth-client.c	Tue May 19 13:37:31 2009 -0400
+++ b/src/plugins/expire/auth-client.c	Tue May 19 16:01:03 2009 -0400
@@ -139,7 +139,7 @@ static void auth_parse_input(struct auth
 	}
 
 	if (conn->orig_uid == 0 || getegid() != gid)
-		env_put(t_strconcat("RESTRICT_SETGID=", *tmp + 4, NULL));
+		env_put(t_strconcat("RESTRICT_SETGID=", dec2str(gid), NULL));
 
 	if (uid != conn->current_uid && conn->current_uid != 0) {
 		if (seteuid(0) != 0)


More information about the dovecot-cvs mailing list