diff options
Diffstat (limited to 'src/os_unix.c')
-rw-r--r-- | src/os_unix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index e6d58811c..07ae4bc03 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -6260,7 +6260,7 @@ static int unixAccess( if( flags==SQLITE_ACCESS_EXISTS ){ struct stat buf; *pResOut = 0==osStat(zPath, &buf) && - (S_ISDIR(buf.st_mode) || buf.st_size>0); + (!S_ISREG(buf.st_mode) || buf.st_size>0); }else{ *pResOut = osAccess(zPath, W_OK|R_OK)==0; } |