From 64b555f5a3aebdc78669d9e25bf796a65a5d49a7 Mon Sep 17 00:00:00 2001 From: Justin Maggard Date: Thu, 2 Oct 2014 17:21:06 -0700 Subject: [PATCH] winbind3: Fix pwent variable substitution Commit 0ce46318 (winbind3: Simplify fillup_pw_field) broke variable substitution by copying from the wrong (unsubstituted) buffer. Fix it. Signed-off-by: Justin Maggard Reviewed-by: Jeremy Allison --- source3/winbindd/wb_fill_pwent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/winbindd/wb_fill_pwent.c b/source3/winbindd/wb_fill_pwent.c index 206827c..1135ef3 100644 --- a/source3/winbindd/wb_fill_pwent.c +++ b/source3/winbindd/wb_fill_pwent.c @@ -240,7 +240,7 @@ static bool fillup_pw_field(const char *lp_template, return False; } - fstrcpy(out, templ); + fstrcpy(out, result); TALLOC_FREE(result); return True; -- 1.9.1