dovecot: Use mail_extra_groups setting.

dovecot at dovecot.org dovecot at dovecot.org
Sun Sep 9 06:10:54 EEST 2007


details:   http://hg.dovecot.org/dovecot/rev/dee75c83d6f4
changeset: 6365:dee75c83d6f4
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Sep 09 06:10:48 2007 +0300
description:
Use mail_extra_groups setting.

diffstat:

1 file changed, 7 insertions(+), 1 deletion(-)
src/deliver/auth-client.c |    8 +++++++-

diffs (25 lines):

diff -r 7ad61f00ee55 -r dee75c83d6f4 src/deliver/auth-client.c
--- a/src/deliver/auth-client.c	Sun Sep 09 05:54:32 2007 +0300
+++ b/src/deliver/auth-client.c	Sun Sep 09 06:10:48 2007 +0300
@@ -51,7 +51,7 @@ static void auth_connection_destroy(stru
 
 static void auth_parse_input(struct auth_connection *conn, const char *args)
 {
-	const char *const *tmp;
+	const char *const *tmp, *extra_groups;
 	uid_t uid = 0;
 	gid_t gid = 0;
 	const char *chroot = getenv("MAIL_CHROOT");
@@ -111,6 +111,12 @@ static void auth_parse_input(struct auth
 
 	if (chroot != NULL)
 		env_put(t_strconcat("RESTRICT_CHROOT=", chroot, NULL));
+
+	extra_groups = getenv("MAIL_EXTRA_GROUPS");
+	if (extra_groups != NULL) {
+		env_put(t_strconcat("RESTRICT_SETEXTRAGROUPS=",
+				    extra_groups, NULL));
+	}
 
 	restrict_access_by_env(TRUE);
 	return_value = EX_OK;


More information about the dovecot-cvs mailing list