changeset 9149:283f52768314 HEAD

expire-tool: Set USER environment while processing a user.
author Timo Sirainen <tss@iki.fi>
date Sun, 21 Jun 2009 23:44:18 -0400
parents a32a8ea97b25
children c7402e49132a
files src/plugins/expire/auth-client.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/plugins/expire/auth-client.c	Sun Jun 21 23:31:46 2009 -0400
+++ b/src/plugins/expire/auth-client.c	Sun Jun 21 23:44:18 2009 -0400
@@ -17,6 +17,7 @@
 	const char *const *fields, *key, *value;
 	unsigned int i, count;
 
+	env_put(t_strconcat("USER=", reply->user, NULL));
 	if (reply->chroot != NULL)
 		env_put(t_strconcat("RESTRICT_CHROOT=", reply->chroot, NULL));