diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-09-02 16:12:49 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 15:03:32 -0500 |
commit | dcb925bba737ab0ee7b5f45032eeba88b9305c6f (patch) | |
tree | daa7c677ce15f344ce07ad85315323ca24920212 /source4/torture/util.c | |
parent | e561313888452a17117956cc4532b77055f20b36 (diff) | |
download | samba-dcb925bba737ab0ee7b5f45032eeba88b9305c6f.tar.gz samba-dcb925bba737ab0ee7b5f45032eeba88b9305c6f.tar.bz2 samba-dcb925bba737ab0ee7b5f45032eeba88b9305c6f.zip |
r24897: Do some sanity checking on --basedir.
(This used to be commit 32dbaa142a2514d011a91ba0a0026934305e295f)
Diffstat (limited to 'source4/torture/util.c')
-rw-r--r-- | source4/torture/util.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/torture/util.c b/source4/torture/util.c index f6287e34d6..b8bfa5f51f 100644 --- a/source4/torture/util.c +++ b/source4/torture/util.c @@ -28,9 +28,10 @@ create a temporary directory. */ _PUBLIC_ NTSTATUS torture_temp_dir(struct torture_context *tctx, - const char *prefix, - char **tempdir) + const char *prefix, + char **tempdir) { + SMB_ASSERT(tctx->outputdir != NULL); *tempdir = talloc_asprintf(tctx, "%s/%s.XXXXXX", tctx->outputdir, prefix); if (mkdtemp(*tempdir) == NULL) |