Downloaded from https://ftp.mozilla.org/pub/security/nss/releases/NSS_3_124_RTM/src/nss-3.124-with-nspr-4.39.tar.gz Change-Id: I56994370bea28cdcf75ecad5419bde640828ce44 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205313 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org> Tested-by: Jenkins
19 lines
506 B
Diff
19 lines
506 B
Diff
--- a/nss/nss/lib/sqlite/sqlite3.c
|
|
+++ b/nss/nss/lib/sqlite/sqlite3.c
|
|
@@ -43915,6 +43915,15 @@
|
|
*/
|
|
static int full_fsync(int fd, int fullSync, int dataOnly){
|
|
int rc;
|
|
+
|
|
+ static int disabledKnown = 0, disabled = 0;
|
|
+ if (!disabledKnown)
|
|
+ {
|
|
+ disabled = getenv("SAL_DISABLE_FSYNC") != NULL;
|
|
+ disabledKnown = 1;
|
|
+ }
|
|
+ if (disabled)
|
|
+ return 0;
|
|
|
|
/* The following "ifdef/elif/else/" block has the same structure as
|
|
** the one below. It is replicated here solely to avoid cluttering
|