aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authordrh <>2021-10-13 14:45:35 +0000
committerdrh <>2021-10-13 14:45:35 +0000
commitf6d07c83fcc2f5f904e900da6f9cac9a690d8cd6 (patch)
tree40def1f413b00dabbb55a78f217a4126904fa2fa /src/os_unix.c
parentfebf0352cd53900849289db9beca69e25de8b981 (diff)
downloadsqlite-f6d07c83fcc2f5f904e900da6f9cac9a690d8cd6.tar.gz
sqlite-f6d07c83fcc2f5f904e900da6f9cac9a690d8cd6.zip
Back out the SQLITE_OPEN_EXCLUSIVE changes because it does not work on
Windows and it does not work always on unix. FossilOrigin-Name: d008ad793dfb11c287f366377cbc561acedef6c9d08b1557f463484eda41a84e
Diffstat (limited to 'src/os_unix.c')
-rw-r--r--src/os_unix.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index aa6b3b8e4..d45fdabab 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -6185,8 +6185,6 @@ static int unixOpen(
/* If unable to create a journal because the directory is not
** writable, change the error code to indicate that. */
rc = SQLITE_READONLY_DIRECTORY;
- }else if( errno==EEXIST ){
- rc = SQLITE_CANTOPEN_EXISTS;
}else if( errno!=EISDIR && isReadWrite ){
/* Failed to open the file for read/write access. Try read-only. */
flags &= ~(SQLITE_OPEN_READWRITE|SQLITE_OPEN_CREATE);