diff --git a/CHANGELOG.md b/CHANGELOG.md index e903c824a..2446ced02 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,7 +16,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ### Removed ### Fixed - Solved a performance problem when filtering results by tags [#1579](https://github.com/greenbone/gvmd/pull/1579) -- Fix VTs hash check and add --dump-vt-verification [#1611](https://github.com/greenbone/gvmd/pull/1611) [#1629](https://github.com/greenbone/gvmd/pull/1629) [#1643](https://github.com/greenbone/gvmd/pull/1643) +- Fix VTs hash check and add --dump-vt-verification [#1611](https://github.com/greenbone/gvmd/pull/1611) [#1629](https://github.com/greenbone/gvmd/pull/1629) [#1643](https://github.com/greenbone/gvmd/pull/1643) [1541](https://github.com/greenbone/gvmd/pull/1651) - Fix memory errors in modify_permission [#1613](https://github.com/greenbone/gvmd/pull/1613) - Fix sensor connection for performance reports on failure [#1633](https://github.com/greenbone/gvmd/pull/1633) - Sort the "host" column by IPv4 address if possible [#1637](https://github.com/greenbone/gvmd/pull/1637) diff --git a/doc/gvmd.8 b/doc/gvmd.8 index 86f47e3be..3c9ecf6c9 100644 --- a/doc/gvmd.8 +++ b/doc/gvmd.8 @@ -207,7 +207,7 @@ Verify scanner SCANNER-UUID and exit. Print version and exit. .TP \fB--vt-verification-collation=\fICOLLATION\fB\f1 -Set collation for VT verification to COLLATION, leave empty to choose automatically. Should be 'ucs_default' if DB uses UTF-8 or 'C' for single-byte encodings. +Set collation for VT verification to COLLATION, omit or leave empty to choose automatically. Should be 'ucs_default' if DB uses UTF-8 or 'C' for single-byte encodings. .SH SIGNALS SIGHUP causes gvmd to rebuild the database with information from the Scanner (openvas). .SH EXAMPLES diff --git a/doc/gvmd.8.xml b/doc/gvmd.8.xml index c05d081ed..8a5fd5818 100644 --- a/doc/gvmd.8.xml +++ b/doc/gvmd.8.xml @@ -461,7 +461,7 @@ along with this program. If not, see .

--vt-verification-collation=COLLATION

- Set collation for VT verification to COLLATION, leave empty + Set collation for VT verification to COLLATION, omit or leave empty to choose automatically. Should be 'ucs_default' if DB uses UTF-8 or 'C' for single-byte encodings.

diff --git a/doc/gvmd.html b/doc/gvmd.html index e844d9f76..2ecec5890 100644 --- a/doc/gvmd.html +++ b/doc/gvmd.html @@ -416,7 +416,7 @@

Options

--vt-verification-collation=COLLATION

- Set collation for VT verification to COLLATION, leave empty + Set collation for VT verification to COLLATION, omit or leave empty to choose automatically. Should be 'ucs_default' if DB uses UTF-8 or 'C' for single-byte encodings.

diff --git a/src/gvmd.c b/src/gvmd.c index 8b2e7618a..ef6d46f3c 100644 --- a/src/gvmd.c +++ b/src/gvmd.c @@ -2112,9 +2112,9 @@ gvmd (int argc, char** argv) NULL }, { "vt-verification-collation", '\0', 0, G_OPTION_ARG_STRING, &vt_verification_collation, - "Set collation for VT verification to , leave empty" - " to choose automatically. Should be 'ucs_default' if DB uses UTF-8" - " or 'C' for single-byte encodings.", + "Set collation for VT verification to , omit or leave" + " empty to choose automatically. Should be 'ucs_default' if DB uses" + " UTF-8 or 'C' for single-byte encodings.", "" }, { NULL } }; diff --git a/src/manage_sql.c b/src/manage_sql.c index ea69023e4..f4eb98f47 100644 --- a/src/manage_sql.c +++ b/src/manage_sql.c @@ -57294,5 +57294,8 @@ void set_vt_verification_collation (const char *new_collation) { g_free (vt_verification_collation); - vt_verification_collation = new_collation ? g_strdup(new_collation) : NULL; + if (new_collation && strcmp (new_collation, "")) + vt_verification_collation = g_strdup(new_collation); + else + vt_verification_collation = NULL; }