Skip to content

Clam 2269 2271 cdiff issues 0.105#902

Closed
val-ms wants to merge 7 commits intoCisco-Talos:dev/0.105.3from
val-ms:CLAM-2269-2271-cdiff-issues-0.105
Closed

Clam 2269 2271 cdiff issues 0.105#902
val-ms wants to merge 7 commits intoCisco-Talos:dev/0.105.3from
val-ms:CLAM-2269-2271-cdiff-issues-0.105

Conversation

@val-ms
Copy link
Contributor

@val-ms val-ms commented Apr 20, 2023

backport of #893 for 0.105

val-ms added 7 commits April 20, 2023 11:46
In the event that there is an issue with the CDIFF process, freshclam is
treating it as thought no patch was downloaded.

If freshclam fails to apply the patch because of an issue with the
patch, or some bug in the CDIFF module, it should retry for the whole
CVD.
Also includes:
- A sigtool test to verify that Rust log macros are working.
- Changing the freshclam tests to use --no-dns so they run faster
  when DNS isn't working (e.g. no internet).
Some log statements using the old ^, !, and * logg-prefix where they
were making use a ternary to determine the log level in the log
statement.

Also sigtool and freshclam weren't outputting error log messages using
the Rust log macros e.g. `error!("...")`.
Any cdiff or script using the UNLINK operation will fail to delete the
file claiming "No DB open for action UNLINK".

The UNLINK operation appears to be trying to delete a currently open
database, when in fact it should ensure no database is open before
deleting the local file given by the single "db_name" parameter.
The CLOSE command is failing to create a file when appending changes if
the file does not already exist. This prevents adding new files to a
database with a CDIFF and caused failures applying the test-3.cdiff file
in the freshclam feature tests.

Also improved the error message to show which command, specifically, is
failing (not just the line number).
@val-ms
Copy link
Contributor Author

val-ms commented May 2, 2023

Oops! Nevermind. Publishing 1.1 means that 0.105 is past end of life for new patch versions as per the EOL policy.

@val-ms val-ms closed this May 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant