1 diff -Nurp liferea-1.6.0.orig/src/db.c liferea-1.6.0/src/db.c
2 --- liferea-1.6.0.orig/src/db.c 2009-10-21 18:15:30.409704157 -0300
3 +++ liferea-1.6.0/src/db.c 2009-10-21 18:16:36.898701497 -0300
4 @@ -171,7 +171,18 @@ open:
7 sqlite3_extended_result_codes (db, TRUE);
10 + char *sync = getenv ("LIFEREA_SYNCHRONOUS");
14 + gchar *sql = sqlite3_mprintf ("pragma synchronous = %d;", atoi(sync));
15 + if (SQLITE_OK != sqlite3_exec(db, sql, NULL, NULL, &err))
16 + debug1 (DEBUG_DB, "setting pragma synchronous failed: %s", err);
21 /* create info table/check versioning info */
22 schemaVersion = db_get_schema_version ();
23 debug1 (DEBUG_DB, "current DB schema version: %d", schemaVersion);