summaryrefslogtreecommitdiff
path: root/source3/passdb/smbpass.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-02-08 00:24:57 +0000
committerLuke Leighton <lkcl@samba.org>1999-02-08 00:24:57 +0000
commit6d698d51b324f84b2d2b4c56ea1e728c0c30b220 (patch)
treee34e22ff61ff463f7d3fd2d5ef94dc2757d5daf0 /source3/passdb/smbpass.c
parentceef08b60e1fc3839df89b27028aa9ac0f920f25 (diff)
downloadsamba-6d698d51b324f84b2d2b4c56ea1e728c0c30b220.tar.gz
samba-6d698d51b324f84b2d2b4c56ea1e728c0c30b220.tar.bz2
samba-6d698d51b324f84b2d2b4c56ea1e728c0c30b220.zip
iteration of sam passwd entries was an order n-cubed algorithm due
to resolution of unix name to nt name being unnecessarily _inside_ another loop. (This used to be commit d455c9d2c9f60289d78d0331228f5922152070bf)
Diffstat (limited to 'source3/passdb/smbpass.c')
-rw-r--r--source3/passdb/smbpass.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/passdb/smbpass.c b/source3/passdb/smbpass.c
index b1ca9ad071..694cceb39f 100644
--- a/source3/passdb/smbpass.c
+++ b/source3/passdb/smbpass.c
@@ -68,8 +68,11 @@ static BOOL setsmbfilepwpos(void *vp, SMB_BIG_UINT tok)
/*************************************************************************
Routine to return the next entry in the smbpasswd list.
+
+ this function is non-static as it is called (exclusively and only)
+ from getsamfile21pwent().
*************************************************************************/
-static struct smb_passwd *getsmbfilepwent(void *vp)
+struct smb_passwd *getsmbfilepwent(void *vp)
{
/* Static buffers we will return. */
static struct smb_passwd pw_buf;