Fossil SCM

Cherrypick SQLite [http://www.sqlite.org/src/info/c43b59dac1|c43b59dac1]: Correct the VFS name as reported by the file control when explicitly using the 'win32-longpath' VFS

jan.nijtmans 2014-01-14 09:02 UTC branch-1.28
Commit 242e0b81c95b96f221f2fce339fbd68a47d3475f
1 file changed +1 -1
+1 -1
--- src/sqlite3.c
+++ src/sqlite3.c
@@ -34081,11 +34081,11 @@
3408134081
winModeBit(pFile, WINFILE_PSOW, (int*)pArg);
3408234082
OSTRACE(("FCNTL file=%p, rc=SQLITE_OK\n", pFile->h));
3408334083
return SQLITE_OK;
3408434084
}
3408534085
case SQLITE_FCNTL_VFSNAME: {
34086
- *(char**)pArg = sqlite3_mprintf("win32");
34086
+ *(char**)pArg = sqlite3_mprintf("%s", pFile->pVfs->zName);
3408734087
OSTRACE(("FCNTL file=%p, rc=SQLITE_OK\n", pFile->h));
3408834088
return SQLITE_OK;
3408934089
}
3409034090
case SQLITE_FCNTL_WIN32_AV_RETRY: {
3409134091
int *a = (int*)pArg;
3409234092
--- src/sqlite3.c
+++ src/sqlite3.c
@@ -34081,11 +34081,11 @@
34081 winModeBit(pFile, WINFILE_PSOW, (int*)pArg);
34082 OSTRACE(("FCNTL file=%p, rc=SQLITE_OK\n", pFile->h));
34083 return SQLITE_OK;
34084 }
34085 case SQLITE_FCNTL_VFSNAME: {
34086 *(char**)pArg = sqlite3_mprintf("win32");
34087 OSTRACE(("FCNTL file=%p, rc=SQLITE_OK\n", pFile->h));
34088 return SQLITE_OK;
34089 }
34090 case SQLITE_FCNTL_WIN32_AV_RETRY: {
34091 int *a = (int*)pArg;
34092
--- src/sqlite3.c
+++ src/sqlite3.c
@@ -34081,11 +34081,11 @@
34081 winModeBit(pFile, WINFILE_PSOW, (int*)pArg);
34082 OSTRACE(("FCNTL file=%p, rc=SQLITE_OK\n", pFile->h));
34083 return SQLITE_OK;
34084 }
34085 case SQLITE_FCNTL_VFSNAME: {
34086 *(char**)pArg = sqlite3_mprintf("%s", pFile->pVfs->zName);
34087 OSTRACE(("FCNTL file=%p, rc=SQLITE_OK\n", pFile->h));
34088 return SQLITE_OK;
34089 }
34090 case SQLITE_FCNTL_WIN32_AV_RETRY: {
34091 int *a = (int*)pArg;
34092

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button