}
if (!db_exist) {
- r = sqlite3_exec(db, "PRAGMA journal_mode = WAL",
- NULL, NULL, NULL);
- if (r) {
- bxt_err("change journal mode '%s' failed: %s",
- dbpath, sqlite3_errmsg(db));
- errno = EIO;
- free(nm);
- return NULL;
+ if (strncmp("/etc", dbpath, 4)) {
+ r = sqlite3_exec(db, "PRAGMA journal_mode = WAL",
+ NULL, NULL, NULL);
+ if (r) {
+ bxt_err("change journal mode '%s' failed: %s",
+ dbpath, sqlite3_errmsg(db));
+ errno = EIO;
+ free(nm);
+ return NULL;
+ }
}
r = sqlite3_exec(db, QUERY_CREATE_TABLE_BUXTON,