diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-07-15 08:10:34 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:23:08 -0500 |
commit | 32b06d5882a6fc93692815392e0a94d0709bc273 (patch) | |
tree | d374ec0f03d6be625dcad75ca2b5050bd9d84f10 /source4/lib/ldb/tests/test-sqlite3.sh | |
parent | 7913cbbe11075c75770d37cf2e0da8f7af51a7fc (diff) | |
download | samba-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/test-sqlite3.sh')
-rwxr-xr-x | source4/lib/ldb/tests/test-sqlite3.sh | 3 |
1 files changed, 2 insertions, 1 deletions
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 |