diff options
author | drh <drh@noemail.net> | 2011-12-14 18:28:18 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2011-12-14 18:28:18 +0000 |
commit | 0f2ab8db33f82743ea49b5b11e5f10a8923ed6fb (patch) | |
tree | ba23ebb1b6eaca6ab90ac982ba96de63acc183f1 /src/test_osinst.c | |
parent | 43a6d4bd4434ef62572c98264aaaf4d01b71c4ac (diff) | |
parent | de60fc2d87a9483cfc1e60ca04381dc07079920b (diff) | |
download | sqlite-0f2ab8db33f82743ea49b5b11e5f10a8923ed6fb.tar.gz sqlite-0f2ab8db33f82743ea49b5b11e5f10a8923ed6fb.zip |
Merge the VFSNAME file-control addition into the nx-devkit branch.
FossilOrigin-Name: 08c1dc517c1340737a55ad9012b7b06f72899c6f
Diffstat (limited to 'src/test_osinst.c')
-rw-r--r-- | src/test_osinst.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/test_osinst.c b/src/test_osinst.c index 50d6250e6..b7f350577 100644 --- a/src/test_osinst.c +++ b/src/test_osinst.c @@ -389,7 +389,11 @@ static int vfslogCheckReservedLock(sqlite3_file *pFile, int *pResOut){ */ static int vfslogFileControl(sqlite3_file *pFile, int op, void *pArg){ VfslogFile *p = (VfslogFile *)pFile; - return p->pReal->pMethods->xFileControl(p->pReal, op, pArg); + int rc = p->pReal->pMethods->xFileControl(p->pReal, op, pArg); + if( op==SQLITE_FCNTL_VFSNAME && rc==SQLITE_OK ){ + *(char**)pArg = sqlite3_mprintf("vfslog/%z", *(char**)pArg); + } + return rc; } /* |