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 | e8e73f7f0fcd86c8c2bfe3fc0b44ea2fd6570cc5 (patch) | |
tree | fcecd770e96b42293cdbf8d8a1384642370747c8 /source/passdb/passdb.c | |
parent | 1748d5a2af1f2dcf718d6f162ed483b001542494 (diff) | |
download | samba-e8e73f7f0fcd86c8c2bfe3fc0b44ea2fd6570cc5.tar.gz samba-e8e73f7f0fcd86c8c2bfe3fc0b44ea2fd6570cc5.tar.xz samba-e8e73f7f0fcd86c8c2bfe3fc0b44ea2fd6570cc5.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
Diffstat (limited to 'source/passdb/passdb.c')
-rw-r--r-- | source/passdb/passdb.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/source/passdb/passdb.c b/source/passdb/passdb.c index dc8e5471e15..873e569f680 100644 --- a/source/passdb/passdb.c +++ b/source/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 |