Author: jelmer
Date: 2007-08-25 15:55:29 +0000 (Sat, 25 Aug 2007)
New Revision: 24657

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

Log:
Use torture functions.
Modified:
   branches/SAMBA_4_0/
   branches/SAMBA_4_0/source/torture/util.c


Changeset:

Property changes on: branches/SAMBA_4_0
___________________________________________________________________
Name: bzr:revision-info
...skipped...
Name: bzr:revision-id:v3-trunk0
...skipped...

Modified: branches/SAMBA_4_0/source/torture/util.c
===================================================================
--- branches/SAMBA_4_0/source/torture/util.c    2007-08-25 15:28:53 UTC (rev 
24656)
+++ branches/SAMBA_4_0/source/torture/util.c    2007-08-25 15:55:29 UTC (rev 
24657)
@@ -27,14 +27,14 @@
 /**
  create a temporary directory.
 */
-_PUBLIC_ NTSTATUS torture_temp_dir(TALLOC_CTX *mem_ctx, const char *prefix, 
+_PUBLIC_ NTSTATUS torture_temp_dir(struct torture_context *tctx, 
+                                                                  const char 
*prefix, 
                                                                   char 
**tempdir)
 {
-       const char *basedir = lp_parm_string(-1, "torture", "basedir");
-       if (basedir == NULL) basedir = ".";
-       *tempdir = talloc_asprintf(mem_ctx, "%s/%s.XXXXXX", 
-                                                          basedir, prefix);
+       const char *basedir = torture_setting_string(tctx, "basedir", ".");
 
+       *tempdir = talloc_asprintf(tctx, "%s/%s.XXXXXX", basedir, prefix);
+
        if (mkdtemp(*tempdir) == NULL)
                return NT_STATUS_UNSUCCESSFUL;
 

Reply via email to