1 diff -ur zabbix-6.0.2.orig/conf/zabbix_proxy.conf zabbix-6.0.2/conf/zabbix_proxy.conf
2 --- zabbix-6.0.2.orig/conf/zabbix_proxy.conf 2022-03-24 18:48:25.803355270 +0100
3 +++ zabbix-6.0.2/conf/zabbix_proxy.conf 2022-03-24 18:48:53.037418309 +0100
7 # For SQLite3 path to database file must be provided. DBUser and DBPassword are ignored.
8 +# If provided name does not contain '/' or ':' (no a path or special type) a .db file in /var/lib/zabbix will be used.
9 # If the Net Service Name connection method is used to connect to Oracle database, specify the service name from
10 # the tnsnames.ora file or set to empty string; also see the TWO_TASK environment variable if DBName is set to
12 diff -ur zabbix-6.0.2.orig/src/libs/zbxdb/db.c zabbix-6.0.2/src/libs/zbxdb/db.c
13 --- zabbix-6.0.2.orig/src/libs/zbxdb/db.c 2022-03-24 18:48:25.580354753 +0100
14 +++ zabbix-6.0.2/src/libs/zbxdb/db.c 2022-03-24 18:48:53.037418309 +0100
17 #elif defined(HAVE_SQLITE3)
18 char *p, *path = NULL;
19 + char dbname_buf[1024];
26 ZBX_UNUSED(cipher_13);
27 + if (!strchr(dbname, '/') && !strchr(dbname, ':')) {
28 + zbx_snprintf(dbname_buf, sizeof(dbname_buf), "/var/lib/zabbix/%s.db", dbname);
29 + dbname = dbname_buf;
31 #ifdef HAVE_FUNCTION_SQLITE3_OPEN_V2
32 if (SQLITE_OK != sqlite3_open_v2(dbname, &conn, SQLITE_OPEN_READWRITE, NULL))