Skip to content

Commit

Permalink
Merge pull request #299 from losynix/fix_analyzer
Browse files Browse the repository at this point in the history
Fix analyzer-server
  • Loading branch information
losynix authored Sep 18, 2023
2 parents c507b68 + aff8959 commit 7592081
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion usbsas-analyzer-server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,9 @@ impl Clamav {

fn analyze(&mut self, path: &str) -> io::Result<Vec<String>> {
let response = self.cmd(&format!("CONTSCAN {}", path))?;
log::debug!("{response:#?}");
let mut dirty = Vec::new();
if response.ends_with("OK") {
if response.ends_with("OK\n") {
return Ok(dirty);
}
for line in response.lines() {
Expand Down

0 comments on commit 7592081

Please sign in to comment.