From 6d698d51b324f84b2d2b4c56ea1e728c0c30b220 Mon Sep 17 00:00:00 2001 From: Luke Leighton Date: Mon, 8 Feb 1999 00:24:57 +0000 Subject: 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) --- source3/passdb/smbpass.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source3/passdb/smbpass.c') 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; -- cgit