Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

if clamdscan returns an error then the file is marked infected. #34

Closed
nss213 opened this issue Mar 28, 2018 · 0 comments
Closed

if clamdscan returns an error then the file is marked infected. #34

nss213 opened this issue Mar 28, 2018 · 0 comments
Labels

Comments

@nss213
Copy link

nss213 commented Mar 28, 2018

In worker.rb, there is a line
if system("clamdscan #{fileName}")

In the case of an error, clamdscan returns status 2. Since the code doesn't examine the status, the file is treated as infected and (may be) deleted. This is probably the wrong thing and perhaps an error status should be reported on the topic?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants