diff options
author | drh <drh@noemail.net> | 2019-09-25 11:49:36 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2019-09-25 11:49:36 +0000 |
commit | edf8a7bf5712a7eaf51c6033d23e29d22aa14df3 (patch) | |
tree | f7ad3405ec8a575675137e83ce37be020cf00889 /src/os_unix.c | |
parent | 1116b1785c018911c33c4148aee1987810b5670b (diff) | |
download | sqlite-edf8a7bf5712a7eaf51c6033d23e29d22aa14df3.tar.gz sqlite-edf8a7bf5712a7eaf51c6033d23e29d22aa14df3.zip |
In the previous check-in, the variable should be openMode, not openFlags.
FossilOrigin-Name: 77b0db22d6c7a031f332bfcf1c8fcd94e464de9f2396f0327ee761a30ebc8b60
Diffstat (limited to 'src/os_unix.c')
-rw-r--r-- | src/os_unix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index ae9356a71..071d97982 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -6067,11 +6067,11 @@ static int unixOpen( ** behinds a journal/WAL that is owned by root and hence make the ** database inaccessible to unprivileged processes. ** - ** If openFlags==0, then that means uid and gid are not set correctly + ** If openMode==0, then that means uid and gid are not set correctly ** (probably because SQLite is configured to use 8+3 filename mode) and ** in that case we do not want to attempt the chown(). */ - if( openFlags && (flags & (SQLITE_OPEN_WAL|SQLITE_OPEN_MAIN_JOURNAL))!=0 ){ + if( openMode && (flags & (SQLITE_OPEN_WAL|SQLITE_OPEN_MAIN_JOURNAL))!=0 ){ robustFchown(fd, uid, gid); } } |