Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Prevent a segfault on Solaris in the test_fs.c due to differences in the definition of the dirent object. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
042738ad3b769ad70fd7603f928d5b94 |
User & Date: | drh 2015-12-04 03:27:45.044 |
Context
2015-12-04
| ||
13:44 | Remove the dependence on "exec ls -U" from the vtabH.test module, as the -U option to "ls" is not universally available. (check-in: 4ecbc75b46 user: drh tags: trunk) | |
03:27 | Prevent a segfault on Solaris in the test_fs.c due to differences in the definition of the dirent object. (check-in: 042738ad3b user: drh tags: trunk) | |
2015-12-03
| ||
22:33 | Fix typos in requirements text and update requirements marks. No changes to code. (check-in: 8534a46c06 user: drh tags: trunk) | |
Changes
Changes to src/test_fs.c.
︙ | ︙ | |||
198 199 200 201 202 203 204 | /* ** xOpen implementation. ** ** Open a new fsdir cursor. */ static int fsdirOpen(sqlite3_vtab *pVTab, sqlite3_vtab_cursor **ppCursor){ FsdirCsr *pCur; | > > > | | 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 | /* ** xOpen implementation. ** ** Open a new fsdir cursor. */ static int fsdirOpen(sqlite3_vtab *pVTab, sqlite3_vtab_cursor **ppCursor){ FsdirCsr *pCur; /* Allocate an extra 256 bytes because it is undefined how big dirent.d_name ** is and we need enough space. Linux provides plenty already, but ** Solaris only provides one byte. */ pCur = (FsdirCsr*)sqlite3_malloc(sizeof(FsdirCsr)+256); if( pCur==0 ) return SQLITE_NOMEM; memset(pCur, 0, sizeof(FsdirCsr)); *ppCursor = &pCur->base; return SQLITE_OK; } /* |
︙ | ︙ |