diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-08-25 15:55:29 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 15:02:33 -0500 |
commit | cc253ae4a0c7e9dec7eedf690d2099924ac4ac5d (patch) | |
tree | 1a5a400ccc7c4e90bd6f9e3313f14548457f759c | |
parent | 67729cf71fa6796c79cee576db461b4523bd75a7 (diff) | |
download | samba-cc253ae4a0c7e9dec7eedf690d2099924ac4ac5d.tar.gz samba-cc253ae4a0c7e9dec7eedf690d2099924ac4ac5d.tar.bz2 samba-cc253ae4a0c7e9dec7eedf690d2099924ac4ac5d.zip |
r24657: Use torture functions.
(This used to be commit e95c50fc501ee4e2a394dc01f2708abb9d937e28)
-rw-r--r-- | source4/torture/util.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source4/torture/util.c b/source4/torture/util.c index 5546e513cf..119a3c1730 100644 --- a/source4/torture/util.c +++ b/source4/torture/util.c @@ -27,13 +27,13 @@ /** 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; |