diff options
author | Andrew Bartlett <abartlet@samba.org> | 2001-11-24 00:36:37 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2001-11-24 00:36:37 +0000 |
commit | af1a0238aa106a43006902e8ef593d7853913b0e (patch) | |
tree | a76ce785ff8193767221ec8d957890f850ea7193 /source3/passdb | |
parent | ca477a61e7a202ba7df756780149a14c1159a73f (diff) | |
download | samba-af1a0238aa106a43006902e8ef593d7853913b0e.tar.gz samba-af1a0238aa106a43006902e8ef593d7853913b0e.tar.bz2 samba-af1a0238aa106a43006902e8ef593d7853913b0e.zip |
Kill off that crazy copy_sam_passwd(). You simply can't do that if the
structre contains pointers (well not if you intend of free those pointers
at some stage)
There is no reason (given the new passdb interface) that you can't modify a
SAM_ACCOUNT in any case.
Andrew Bartlett
(This used to be commit e8e73f7f0fcd86c8c2bfe3fc0b44ea2fd6570cc5)
Diffstat (limited to 'source3/passdb')
-rw-r--r-- | source3/passdb/passdb.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/source3/passdb/passdb.c b/source3/passdb/passdb.c index dc8e5471e1..873e569f68 100644 --- a/source3/passdb/passdb.c +++ b/source3/passdb/passdb.c @@ -868,18 +868,6 @@ void copy_id21_to_sam_passwd(SAM_ACCOUNT *to, SAM_USER_INFO_21 *from) } /************************************************************* - Copies a SAM_ACCOUNT. - **************************************************************/ - -void copy_sam_passwd(SAM_ACCOUNT *to, const SAM_ACCOUNT *from) -{ - if (!from || !to) - return; - - memcpy(to, from, sizeof(SAM_ACCOUNT)); -} - -/************************************************************* Change a password entry in the local smbpasswd file. FIXME!! The function needs to be abstracted into the |