diff options
-rw-r--r-- | community/gvmd/APKBUILD | 4 | ||||
-rw-r--r-- | community/gvmd/fix-alpine-sql-syntax.patch | 13 |
2 files changed, 15 insertions, 2 deletions
diff --git a/community/gvmd/APKBUILD b/community/gvmd/APKBUILD index 607559042d..df4fb6aebc 100644 --- a/community/gvmd/APKBUILD +++ b/community/gvmd/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Francesco Colista <fcolista@alpinelinux.org> pkgname=gvmd pkgver=8.0.1 -pkgrel=1 +pkgrel=2 pkgdesc="Greenbone Vulnerability Manager" url="http://www.openvas.org/" arch="all" @@ -56,4 +56,4 @@ sha512sums="5490b902ad42499657eca9031b396c70a82d3c523985601067e697758f2472d123c4 17df9386fc1dccf2fbe3b8d1fd499171f6681b61afe7b4c11ff9debc008798b31d1d02d59463031482d94e10833f0e71bde27cbbe422f23738c77b7c6ada79d2 greenbone-certdata-sync.conf 37dbbd3f92f8baee8e89c274d820e03cba5ed5469a826f118897035c2f7719a915a71a6069eb6bf7f9a72e798b7837af9a6f25709215683d9d264292b5ccad66 greenbone-scapdata-sync.conf 4abf90aaf3a0da5cf3869b9b6eb2314bcd7376236e1d47f4ef37445b5ea98c89eeccb57056f71f6624d35167081f312c8fc8a60ac549584cc8aff350b683a90d sys-siglist.patch -bb56b85f47074ab8b46a6cd0bb677eef391dc5bf720e0c760b189536cfaa39ccc6473c201ee06259de099c37dcb2def025651c19f543dbde2becd956bde9f042 fix-alpine-sql-syntax.patch" +8bfe0ef8efc288ebdbe83aa3c420a87d5514d7bae58d282ca34c7316db83fa1946a0a2228f3237192165ac4e8dbf414b1262be9986696c3ffb8e0652ec73efaf fix-alpine-sql-syntax.patch" diff --git a/community/gvmd/fix-alpine-sql-syntax.patch b/community/gvmd/fix-alpine-sql-syntax.patch index 1c37da0fc4..796c623192 100644 --- a/community/gvmd/fix-alpine-sql-syntax.patch +++ b/community/gvmd/fix-alpine-sql-syntax.patch @@ -21,3 +21,16 @@ index 1fc9582bb..c03e800b4 100644 " AND config_preferences.name != 'max_hosts'" " UNION" +diff --git a/src/manage_sql.c b/src/manage_sql.c +index 99ee86f..3ce495c 100644 +--- a/src/manage_sql.c ++++ b/src/manage_sql.c +@@ -28550,7 +28550,7 @@ report_port_count (report_t report) + { + return sql_int ("SELECT count (DISTINCT port) FROM results" + " WHERE report = %llu AND port != ''" +- " AND port NOT %s 'general/%';", ++ " AND port NOT %s 'general/%%';", + report, + sql_ilike_op ()); + } |