winbind3: Fix pwent variable substitution
authorJustin Maggard <jmaggard10@gmail.com>
Fri, 3 Oct 2014 00:21:06 +0000 (17:21 -0700)
committerJeremy Allison <jra@samba.org>
Fri, 3 Oct 2014 17:55:08 +0000 (19:55 +0200)
Commit 0ce46318 (winbind3: Simplify fillup_pw_field) broke variable
substitution by copying from the wrong (unsubstituted) buffer.  Fix it.

Signed-off-by: Justin Maggard <jmaggard10@gmail.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Richard Sharpe <rsharpe@samba.org>
source3/winbindd/wb_fill_pwent.c

index 206827cc92e5c008e7f7f2ae479de3ddb32554f6..1135ef320d47f30de8aa4be7210e00a85de144af 100644 (file)
@@ -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;