svn commit: samba r8485 - in branches/SAMBA_4_0/source/lib/ldb/tests: .

tridge at samba.org tridge at samba.org
Fri Jul 15 08:10:35 GMT 2005


Author: tridge
Date: 2005-07-15 08:10:34 +0000 (Fri, 15 Jul 2005)
New Revision: 8485

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=8485

Log:
- be friendly to shells other than bash

- don't use /tmp in test paths, as that opens us to symlink attacks

Modified:
   branches/SAMBA_4_0/source/lib/ldb/tests/test-schema.sh
   branches/SAMBA_4_0/source/lib/ldb/tests/test-sqlite3.sh
   branches/SAMBA_4_0/source/lib/ldb/tests/test-tdb.sh


Changeset:
Modified: branches/SAMBA_4_0/source/lib/ldb/tests/test-schema.sh
===================================================================
--- branches/SAMBA_4_0/source/lib/ldb/tests/test-schema.sh	2005-07-15 07:45:40 UTC (rev 8484)
+++ branches/SAMBA_4_0/source/lib/ldb/tests/test-schema.sh	2005-07-15 08:10:34 UTC (rev 8485)
@@ -1,6 +1,7 @@
 #!/bin/sh
 
-export LDB_URL="tdb://schema.ldb"
+LDB_URL="tdb://schema.ldb"
+export LDB_URL
 
 rm -f schema.ldb
 

Modified: branches/SAMBA_4_0/source/lib/ldb/tests/test-sqlite3.sh
===================================================================
--- branches/SAMBA_4_0/source/lib/ldb/tests/test-sqlite3.sh	2005-07-15 07:45:40 UTC (rev 8484)
+++ branches/SAMBA_4_0/source/lib/ldb/tests/test-sqlite3.sh	2005-07-15 08:10:34 UTC (rev 8485)
@@ -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
 

Modified: branches/SAMBA_4_0/source/lib/ldb/tests/test-tdb.sh
===================================================================
--- branches/SAMBA_4_0/source/lib/ldb/tests/test-tdb.sh	2005-07-15 07:45:40 UTC (rev 8484)
+++ branches/SAMBA_4_0/source/lib/ldb/tests/test-tdb.sh	2005-07-15 08:10:34 UTC (rev 8485)
@@ -1,7 +1,8 @@
 #!/bin/sh
 
 
-export LDB_URL="tdbtest.ldb"
+LDB_URL="tdbtest.ldb"
+export LDB_URL
 
 PATH=bin:$PATH
 export PATH



More information about the samba-cvs mailing list