mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-20 23:37:33 +09:00
import changes from mozilla nss repo:
- Bug 1662515 - Fix incorrect alert after successful decryption r=djackson - Bug 1721476 sqlite 3.34 changed it's open semantics, causing nss failures. - Bug 1728394 - Add TunTrust Root CA certificate to NSS. r=KathleenWilson - Bug 1717707 - Add HARICA TLS RSA Root CA 2021. r=KathleenWilson - Bug 1717707 - Add HARICA TLS ECC Root CA 2021. r=KathleenWilson - Bug 1717707 - Add HARICA Client RSA Root CA 2021. r=KathleenWilson - Bug 1717707 - Add HARICA Client ECC Root CA 2021. r=KathleenWilson
This commit is contained in:
parent
a49b1a5902
commit
423d61a6f8
3 changed files with 777 additions and 0 deletions
|
|
@ -656,6 +656,11 @@ sdb_openDB(const char *name, sqlite3 **sqlDB, int flags)
|
|||
openFlags = SQLITE_OPEN_READONLY;
|
||||
} else {
|
||||
openFlags = SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE;
|
||||
/* sqlite 3.34 seem to incorrectly open readwrite.
|
||||
* when the file is readonly. Explicitly reject that issue here */
|
||||
if ((_NSSUTIL_Access(name, PR_ACCESS_EXISTS) == PR_SUCCESS) && (_NSSUTIL_Access(name, PR_ACCESS_WRITE_OK) != PR_SUCCESS)) {
|
||||
return SQLITE_READONLY;
|
||||
}
|
||||
}
|
||||
|
||||
/* Requires SQLite 3.5.0 or newer. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue