summaryrefslogtreecommitdiffstats
path: root/third_party/sqlite/mac_time_machine.patch
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/sqlite/mac_time_machine.patch')
-rw-r--r--third_party/sqlite/mac_time_machine.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/third_party/sqlite/mac_time_machine.patch b/third_party/sqlite/mac_time_machine.patch
index 905609e..bfd113b 100644
--- a/third_party/sqlite/mac_time_machine.patch
+++ b/third_party/sqlite/mac_time_machine.patch
@@ -55,7 +55,7 @@ Index: src/pager.c
+ ** implementations. */
+ if( rc==SQLITE_OK && pPager->zFilename!=NULL
+ && strlen(pPager->zFilename)>0
-+ && memcmp(pVfs->zName, "unix", 4)==0
++ && strncmp(pVfs->zName, "unix", 4)==0
+ && ( pVfs->zName[4]=='-' || pVfs->zName[4]=='\0' ) ){
+ CFURLRef database = create_cfurl_from_cstring(pPager->zFilename);
+ if( CSBackupIsItemExcluded(database, NULL) ){