/ Check-in [4f5f3aeb]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix an operator precedence problem on the [1d8086902e] check-in.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | ex-robust-open
Files: files | file ages | folders
SHA1: 4f5f3aebe81c3cbe539db3e33ec38fa3de47e90b
User & Date: drh 2013-03-06 01:41:53
Context
2013-03-06
01:48
Add the SQLITE_READONLY_ROLLBACK extended error code. Do not try to set the permissions on journal or wal files except if the filesize is initially zero (indicating that it is a new file.) check-in: ce4ac66a user: drh tags: trunk
01:41
Fix an operator precedence problem on the [1d8086902e] check-in. Closed-Leaf check-in: 4f5f3aeb user: drh tags: ex-robust-open
2013-03-05
16:54
Failed merge experimental branch with trunk. check-in: 4e6e07a6 user: dan tags: ex-robust-open
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/os_unix.c.

   550    550   #endif
   551    551     }while( fd<0 && errno==EINTR );
   552    552     if( fd>=0 ){
   553    553       if( m!=0 ){
   554    554         struct stat statbuf;
   555    555         if( osFstat(fd, &statbuf)==0 
   556    556          && statbuf.st_size==0
   557         -       && statbuf.st_mode&0777!=m 
          557  +       && (statbuf.st_mode&0777)!=m 
   558    558         ){
   559    559           osFchmod(fd, m);
   560    560         }
   561    561       }
   562    562   #if defined(FD_CLOEXEC) && (!defined(O_CLOEXEC) || O_CLOEXEC==0)
   563    563       osFcntl(fd, F_SETFD, osFcntl(fd, F_GETFD, 0) | FD_CLOEXEC);
   564    564   #endif