Enhance the unix VFS so that it removes extra "/", "/./" and "/../" from

the database filename.

FossilOrigin-Name: 7ba89d3e5c68d970ed26c2ec6e6e34bae535c2cc0b22a022d20ac9ff4527b8ab
This commit is contained in:
drh
2020-11-16 18:45:21 +00:00
parent b035b87ef8
commit 7f42dcd901
4 changed files with 68 additions and 13 deletions
+3 -5
View File
@@ -160,11 +160,9 @@ do_test shared-$av.1.8 {
} {}
do_test shared-$av.2.1 {
# Open connection db3 to the database. Use a different path to the same
# file so that db3 does *not* share the same pager cache as db and db2
# (there should be two open file handles).
# Open connection db3 to the database.
if {$::tcl_platform(platform)=="unix"} {
sqlite3 db3 ./test.db
sqlite3 db3 "file:test.db?cache=private" -uri 1
} else {
sqlite3 db3 TEST.DB
}
@@ -800,7 +798,7 @@ do_test shared-$av.10.3 {
# An external connection should be able to read the database, but not
# prepare a write operation.
if {$::tcl_platform(platform)=="unix"} {
sqlite3 db3 ./test.db
sqlite3 db3 "file:test.db?cache=private" -uri 1
} else {
sqlite3 db3 TEST.DB
}