dovecot-1.1: expire-tool: Set USER environment while processing ...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Jun 22 06:44:05 EEST 2009
details: http://hg.dovecot.org/dovecot-1.1/rev/77403fcaec28
changeset: 8312:77403fcaec28
user: Timo Sirainen <tss at iki.fi>
date: Sun Jun 21 23:44:01 2009 -0400
description:
expire-tool: Set USER environment while processing a user.
diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
src/plugins/expire/auth-client.c | 5 ++++-
diffs (15 lines):
diff -r 34eb35a71b1d -r 77403fcaec28 src/plugins/expire/auth-client.c
--- a/src/plugins/expire/auth-client.c Tue Jun 16 14:41:02 2009 -0400
+++ b/src/plugins/expire/auth-client.c Sun Jun 21 23:44:01 2009 -0400
@@ -96,7 +96,10 @@ static void auth_parse_input(struct auth
gid_t gid = (gid_t)-1;
int home_found = FALSE;
- for (tmp = t_strsplit(args, "\t"); *tmp != NULL; tmp++) {
+ tmp = t_strsplit(args, "\t");
+ env_put(t_strconcat("USER=", tmp[0], NULL));
+
+ for (tmp++; *tmp != NULL; tmp++) {
if (strncmp(*tmp, "uid=", 4) == 0)
uid = strtoul(*tmp + 4, NULL, 10);
else if (strncmp(*tmp, "gid=", 4) == 0)
More information about the dovecot-cvs
mailing list