aboutsummaryrefslogtreecommitdiffstats
path: root/community/gvmd/fix-alpine-sql-syntax.patch
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2019-09-30 07:36:57 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2019-09-30 07:36:57 +0000
commitb13721f9a18ca668daa429995e64f780697502ae (patch)
tree789296efa0c0cdf10720833360c6afd7174187f9 /community/gvmd/fix-alpine-sql-syntax.patch
parent9cc7fd84b6fd979b2a2c1c2545b30038224c0ce3 (diff)
downloadaports-b13721f9a18ca668daa429995e64f780697502ae.tar.bz2
aports-b13721f9a18ca668daa429995e64f780697502ae.tar.xz
community/gvmd: fix for task that not start from gsad
Merging the patch for the bug described in: https://github.com/greenbone/gvmd/issues/473 and patched in https://github.com/greenbone/gvmd/pull/758
Diffstat (limited to 'community/gvmd/fix-alpine-sql-syntax.patch')
-rw-r--r--community/gvmd/fix-alpine-sql-syntax.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/community/gvmd/fix-alpine-sql-syntax.patch b/community/gvmd/fix-alpine-sql-syntax.patch
new file mode 100644
index 0000000000..1c37da0fc4
--- /dev/null
+++ b/community/gvmd/fix-alpine-sql-syntax.patch
@@ -0,0 +1,23 @@
+From a1633b5a54456b2b152abef24db19ae3587c8dae Mon Sep 17 00:00:00 2001
+From: 7ym0n <bb.qnyd@gmail.com>
+Date: Fri, 27 Sep 2019 04:31:27 -0400
+Subject: [PATCH 1/2] fixed start task failed
+
+---
+ src/manage_sql.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/manage_sql.c b/src/manage_sql.c
+index 1fc9582bb..c03e800b4 100644
+--- a/src/manage_sql.c
++++ b/src/manage_sql.c
+@@ -38041,7 +38041,7 @@ init_otp_pref_iterator (iterator_t* iterator,
+ " WHERE config_preferences.config = %llu"
+ " AND config_preferences.type = '%s'"
+ " AND (config_preferences.name = nvt_preferences.name"
+- " OR config_preferences.name LIKE 'timeout.%')"
++ " OR config_preferences.name LIKE 'timeout.%%')"
+ " AND config_preferences.name != 'max_checks'"
+ " AND config_preferences.name != 'max_hosts'"
+ " UNION"
+