r8485: - be friendly to shells other than bash
authorAndrew Tridgell <tridge@samba.org>
Fri, 15 Jul 2005 08:10:34 +0000 (08:10 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:23:08 +0000 (13:23 -0500)
- 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
source4/lib/ldb/tests/test-sqlite3.sh
source4/lib/ldb/tests/test-tdb.sh

index a8af8a38e2d23e8de47c63a59cc0089e73482cbf..2f10fb45e2a735962c13a375acdfcc6c6c24c74f 100755 (executable)
@@ -1,6 +1,7 @@
 #!/bin/sh
 
 #!/bin/sh
 
-export LDB_URL="tdb://schema.ldb"
+LDB_URL="tdb://schema.ldb"
+export LDB_URL
 
 rm -f schema.ldb
 
 
 rm -f schema.ldb
 
index 7e0c96feaff5999ad77aa0bfcbbd8e2042286b6d..18e72024f391fa3a0e29fc73b98d93dc08acd1ba 100755 (executable)
@@ -1,7 +1,8 @@
 #!/bin/sh
 
 
 #!/bin/sh
 
 
-export LDB_URL="sqlite:///var/tmp/test.ldb"
+LDB_URL="sqlite://test.ldb"
+export LDB_URL
 
 rm -f sqltest.ldb
 
 
 rm -f sqltest.ldb
 
index 936c44875765060a44d78aa5d362cdfd5825d171..6899d9867716195850ae1b8441100fae3cbf2e60 100755 (executable)
@@ -1,7 +1,8 @@
 #!/bin/sh
 
 
 #!/bin/sh
 
 
-export LDB_URL="tdbtest.ldb"
+LDB_URL="tdbtest.ldb"
+export LDB_URL
 
 PATH=bin:$PATH
 export PATH
 
 PATH=bin:$PATH
 export PATH