aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2013-03-06 01:41:53 +0000
committerdrh <drh@noemail.net>2013-03-06 01:41:53 +0000
commitcfc176973ec6a138068a2f9c30e5662dd5d5ced0 (patch)
tree7122a0fa77786d2969e4b3ccd0fcacf0ede23d81 /src/os_unix.c
parent77dfe91662d194c436323fd221ec0133109fe715 (diff)
downloadsqlite-cfc176973ec6a138068a2f9c30e5662dd5d5ced0.tar.gz
sqlite-cfc176973ec6a138068a2f9c30e5662dd5d5ced0.zip
Fix an operator precedence problem on the [1d8086902e] check-in.
FossilOrigin-Name: 4f5f3aebe81c3cbe539db3e33ec38fa3de47e90b
Diffstat (limited to 'src/os_unix.c')
-rw-r--r--src/os_unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index ee13ae8ad..8f094bdc1 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -554,7 +554,7 @@ static int robust_open(const char *z, int f, mode_t m){
struct stat statbuf;
if( osFstat(fd, &statbuf)==0
&& statbuf.st_size==0
- && statbuf.st_mode&0777!=m
+ && (statbuf.st_mode&0777)!=m
){
osFchmod(fd, m);
}