1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-30 19:03:16 +03:00

Do not attempt to set the permissions on an existing journal or wal file. Do this only immediately after creating a new file (or opening one zero bytes in size).

FossilOrigin-Name: 1d8086902ee96347491bce5ec04dc92ccd42efa1
This commit is contained in:
dan
2013-03-05 15:27:34 +00:00
parent e3664fb03c
commit b83c21e600
4 changed files with 13 additions and 13 deletions

View File

@ -752,7 +752,7 @@ sqlite3 db test.db -readonly 1
do_catchsql_test pager1.4.5.6 {
SELECT * FROM t1;
SELECT * FROM t2;
} {1 {disk I/O error}}
} {1 {attempt to write a readonly database}}
db close
# Snapshot the file-system just before multi-file commit. Save the name