From 32b06d5882a6fc93692815392e0a94d0709bc273 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 15 Jul 2005 08:10:34 +0000 Subject: r8485: - be friendly to shells other than bash - don't use /tmp in test paths, as that opens us to symlink attacks (This used to be commit 9f29cccbc1fb44cb0317911601456c190883f066) --- source4/lib/ldb/tests/test-schema.sh | 3 ++- source4/lib/ldb/tests/test-sqlite3.sh | 3 ++- source4/lib/ldb/tests/test-tdb.sh | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) (limited to 'source4') diff --git a/source4/lib/ldb/tests/test-schema.sh b/source4/lib/ldb/tests/test-schema.sh index a8af8a38e2..2f10fb45e2 100755 --- a/source4/lib/ldb/tests/test-schema.sh +++ b/source4/lib/ldb/tests/test-schema.sh @@ -1,6 +1,7 @@ #!/bin/sh -export LDB_URL="tdb://schema.ldb" +LDB_URL="tdb://schema.ldb" +export LDB_URL rm -f schema.ldb diff --git a/source4/lib/ldb/tests/test-sqlite3.sh b/source4/lib/ldb/tests/test-sqlite3.sh index 7e0c96feaf..18e72024f3 100755 --- a/source4/lib/ldb/tests/test-sqlite3.sh +++ b/source4/lib/ldb/tests/test-sqlite3.sh @@ -1,7 +1,8 @@ #!/bin/sh -export LDB_URL="sqlite:///var/tmp/test.ldb" +LDB_URL="sqlite://test.ldb" +export LDB_URL rm -f sqltest.ldb diff --git a/source4/lib/ldb/tests/test-tdb.sh b/source4/lib/ldb/tests/test-tdb.sh index 936c448757..6899d98677 100755 --- a/source4/lib/ldb/tests/test-tdb.sh +++ b/source4/lib/ldb/tests/test-tdb.sh @@ -1,7 +1,8 @@ #!/bin/sh -export LDB_URL="tdbtest.ldb" +LDB_URL="tdbtest.ldb" +export LDB_URL PATH=bin:$PATH export PATH -- cgit