From 9bb222c3cb22367c556744aac75e3e9759a5a1e3 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. BUG: https://bugzilla.samba.org/show_bug.cgi?id=10852 Signed-off-by: Justin Maggard Reviewed-by: Jeremy Allison Reviewed-by: Richard Sharpe (cherry picked from commit 902086d0d4c688236ad4a8248a50de8639e1e524) --- 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; -- 2.1.1