From b95057c1276f0350a5b7d6a4bc4847e21d7be86b Mon Sep 17 00:00:00 2001 From: Samba Release Account Date: Mon, 21 Jul 1997 16:58:10 +0000 Subject: Fixed bug with -add code that put wrong password in nt md4 field. Jeremy (jallison@whistle.com) (This used to be commit aabb18953b5d026af3548610aa1ffd6ea2fd72e5) --- source3/utils/smbpasswd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/utils') diff --git a/source3/utils/smbpasswd.c b/source3/utils/smbpasswd.c index e03ebbaaef..6088263bcc 100644 --- a/source3/utils/smbpasswd.c +++ b/source3/utils/smbpasswd.c @@ -404,7 +404,7 @@ Error was %d\n", argv[0], pwd->pw_name, pfile, errno); p += 32; *p++ = ':'; for( i = 0; i < 16; i++) - sprintf(&p[i*2], "%02X", old_p16[i]); + sprintf(&p[i*2], "%02X", new_nt_p16[i]); p += 32; *p++ = ':'; sprintf(p, "%s:%s:%s\n", pwd->pw_gecos, -- cgit