svn commit: samba r22023 - in branches/SAMBA_3_0/source/lib: .

abartlet at samba.org abartlet at samba.org
Mon Apr 2 06:26:17 GMT 2007


Author: abartlet
Date: 2007-04-02 06:26:16 +0000 (Mon, 02 Apr 2007)
New Revision: 22023

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=22023

Log:
I don't like this cache, but I think Jeremy is right, the consequences
of the talloc heirarchy created are too subtle, particularly with
callers picking out individual members.

This might fix the faults on the build farm.

Andrew Bartlett


Modified:
   branches/SAMBA_3_0/source/lib/util_pw.c


Changeset:
Modified: branches/SAMBA_3_0/source/lib/util_pw.c
===================================================================
--- branches/SAMBA_3_0/source/lib/util_pw.c	2007-04-02 05:53:34 UTC (rev 22022)
+++ branches/SAMBA_3_0/source/lib/util_pw.c	2007-04-02 06:26:16 UTC (rev 22023)
@@ -105,8 +105,8 @@
 	}
 
 	pwnam_cache[i] = tcopy_passwd(pwnam_cache, temp);
-	/* while keeping this in the cache, reference a copy for the caller */
-	return (struct passwd *)talloc_reference(mem_ctx, pwnam_cache[i]);
+
+	return tcopy_passwd(pwnam_cache, temp);
 }
 
 struct passwd *getpwuid_alloc(TALLOC_CTX *mem_ctx, uid_t uid) 



More information about the samba-cvs mailing list