svn commit: samba r26123 - in branches/SAMBA_4_0/source/param: .

jelmer at samba.org jelmer at samba.org
Mon Nov 26 00:55:24 GMT 2007


Author: jelmer
Date: 2007-11-26 00:55:22 +0000 (Mon, 26 Nov 2007)
New Revision: 26123

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

Log:
Use utility function for secrets.tdb path.
Modified:
   branches/SAMBA_4_0/source/param/secrets.c


Changeset:
Modified: branches/SAMBA_4_0/source/param/secrets.c
===================================================================
--- branches/SAMBA_4_0/source/param/secrets.c	2007-11-25 23:23:30 UTC (rev 26122)
+++ branches/SAMBA_4_0/source/param/secrets.c	2007-11-26 00:55:22 UTC (rev 26123)
@@ -66,7 +66,8 @@
 	if (tdb)
 		return true;
 
-	asprintf(&fname, "%s/secrets.tdb", lp_private_dir(global_loadparm));
+	fname = private_path(talloc_autofree_context(), global_loadparm,
+						 "secrets.tdb");
 
 	tdb = tdb_wrap_open(talloc_autofree_context(), fname, 0, TDB_DEFAULT, O_RDWR|O_CREAT, 0600);
 



More information about the samba-cvs mailing list