remove patches unneeded since we dont build against systemwide sqlite
they didnt apply anymore anyway, cvs fooled me. reported by pvk@, thanks!
This commit is contained in:
parent
0390ee9e3d
commit
13057f4760
@ -1,22 +0,0 @@
|
||||
$OpenBSD: patch-storage_mozStorageConnection_cpp,v 1.21 2020/03/10 15:53:40 landry Exp $
|
||||
|
||||
set secure_delete PRAGMA on by default, instead of using internal sqlite copy
|
||||
https://bugzilla.mozilla.org/show_bug.cgi?id=546162
|
||||
|
||||
Index: storage/mozStorageConnection.cpp
|
||||
--- storage/mozStorageConnection.cpp.orig
|
||||
+++ storage/mozStorageConnection.cpp
|
||||
@@ -782,6 +782,13 @@ nsresult Connection::initializeInternal() {
|
||||
return convertResultCode(srv);
|
||||
}
|
||||
|
||||
+ srv = ::sqlite3_exec(mDBConn, "PRAGMA secure_delete = ON", NULL, NULL, NULL);
|
||||
+ if (srv != SQLITE_OK) {
|
||||
+ ::sqlite3_close(mDBConn);
|
||||
+ mDBConn = nullptr;
|
||||
+ return convertResultCode(srv);
|
||||
+ }
|
||||
+
|
||||
// Set the synchronous PRAGMA, according to the preference.
|
||||
switch (Service::getSynchronousPref()) {
|
||||
case 2:
|
@ -1,17 +0,0 @@
|
||||
$OpenBSD: patch-storage_mozStorageService_cpp,v 1.1 2019/05/21 16:51:12 landry Exp $
|
||||
|
||||
dont check for SQLITE_SECURE_DELETE at runtime, we disable it
|
||||
|
||||
Cf https://bugzilla.mozilla.org/show_bug.cgi?id=1049920 & https://phabricator.services.mozilla.com/D18057
|
||||
|
||||
Index: storage/mozStorageService.cpp
|
||||
--- storage/mozStorageService.cpp.orig
|
||||
+++ storage/mozStorageService.cpp
|
||||
@@ -188,7 +188,6 @@ already_AddRefed<Service> Service::getSingleton() {
|
||||
// or newer. Our configure check ensures we are using a new enough version
|
||||
// at compile time.
|
||||
if (SQLITE_VERSION_NUMBER > ::sqlite3_libversion_number() ||
|
||||
- !::sqlite3_compileoption_used("SQLITE_SECURE_DELETE") ||
|
||||
!::sqlite3_compileoption_used("SQLITE_THREADSAFE=1") ||
|
||||
!::sqlite3_compileoption_used("SQLITE_ENABLE_FTS3") ||
|
||||
!::sqlite3_compileoption_used("SQLITE_ENABLE_UNLOCK_NOTIFY") ||
|
Loading…
Reference in New Issue
Block a user