summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/tests
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-07-15 08:10:34 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:23:08 -0500
commit32b06d5882a6fc93692815392e0a94d0709bc273 (patch)
treed374ec0f03d6be625dcad75ca2b5050bd9d84f10 /source4/lib/ldb/tests
parent7913cbbe11075c75770d37cf2e0da8f7af51a7fc (diff)
downloadsamba-32b06d5882a6fc93692815392e0a94d0709bc273.tar.gz
samba-32b06d5882a6fc93692815392e0a94d0709bc273.tar.bz2
samba-32b06d5882a6fc93692815392e0a94d0709bc273.zip
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)
Diffstat (limited to 'source4/lib/ldb/tests')
-rwxr-xr-xsource4/lib/ldb/tests/test-schema.sh3
-rwxr-xr-xsource4/lib/ldb/tests/test-sqlite3.sh3
-rwxr-xr-xsource4/lib/ldb/tests/test-tdb.sh3
3 files changed, 6 insertions, 3 deletions
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