From 87c389ce048d1955482354851b196036e11d26e0 Mon Sep 17 00:00:00 2001 From: Gil Besso Date: Tue, 7 Nov 2017 15:27:44 +0200 Subject: [PATCH] Changed sqlcipher_codec_ctx_migrate to use VFS xDelete instead of standard library remove --- src/crypto_impl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crypto_impl.c b/src/crypto_impl.c index e43704d..53deca0 100644 --- a/src/crypto_impl.c +++ b/src/crypto_impl.c @@ -1165,7 +1165,7 @@ int sqlcipher_codec_ctx_migrate(codec_ctx *ctx) { pDb->pBt = 0; pDb->pSchema = 0; sqlite3ResetAllSchemasOfConnection(db); - remove(migrated_db_filename); + db->pVfs->xDelete(db->pVfs, migrated_db_filename, 0); sqlite3_free(migrated_db_filename); } else { CODEC_TRACE(("*** migration failure** \n\n"));