diff options
author | drh <> | 2021-10-13 14:45:35 +0000 |
---|---|---|
committer | drh <> | 2021-10-13 14:45:35 +0000 |
commit | f6d07c83fcc2f5f904e900da6f9cac9a690d8cd6 (patch) | |
tree | 40def1f413b00dabbb55a78f217a4126904fa2fa /src/os_unix.c | |
parent | febf0352cd53900849289db9beca69e25de8b981 (diff) | |
download | sqlite-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.c | 2 |
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); |