patch

Simo Sorce simo.sorce at polimi.it
Wed Jan 24 13:18:31 GMT 2001


Here's a little patch that will fix a bug in pdbedit.c and add a check to
the pdb_gethexpwd to check we have a valid pointer (not null).

-- 
Simo Sorce - Linux Systems Consultant
E-mail: simo.sorce at polimi.it
Tel: +39 0348 7149179 - Fax: +39 02 700442399
-----------------------------------------------------------------
Be happy, use Linux!
-------------- next part --------------
Index: source/passdb/passdb.c
===================================================================
RCS file: /cvsroot/samba/source/passdb/passdb.c,v
retrieving revision 1.73
diff -r1.73 passdb.c
287c287,289
< 
---
> 	
> 	if (!p) return (False);
> 	
Index: source/utils/pdbedit.c
===================================================================
RCS file: /cvsroot/samba/source/utils/pdbedit.c,v
retrieving revision 1.1
diff -r1.1 pdbedit.c
53,54c53,54
< 	printf("  -v                   verbose output\n");
< 	printf("  -w                   smbpasswd file style\n");
---
> 	printf("     -v                verbose output\n");
> 	printf("     -w                smbpasswd file style\n");
92,93c92,93
< 		pdb_gethexpwd(pdb_get_lanman_passwd(sam_pwent), lm_passwd);
< 		pdb_gethexpwd(pdb_get_nt_passwd(sam_pwent),     nt_passwd);
---
> 		pdb_sethexpwd(lm_passwd, pdb_get_lanman_passwd(sam_pwent), pdb_get_acct_ctrl(sam_pwent));
> 		pdb_sethexpwd(nt_passwd, pdb_get_nt_passwd(sam_pwent), pdb_get_acct_ctrl(sam_pwent));


More information about the samba-technical mailing list