-
Notifications
You must be signed in to change notification settings - Fork 708
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #820 - add new option --fail-when-outdated #832
Conversation
I'm really excited for this PR! |
The functions with prototypes in One option is to wrap the existing Instead, maybe a new function should be added to
My idea is to allow
Instead of having the option be Then, IF the Also, if adding a new option to clamscan we should add the option to the clamscan manpage: https://github.com/Cisco-Talos/clamav/blob/main/docs/man/clamscan.1.in Also, if Also, If we do add a This second idea has a few benefits:
What do you think overall? |
Thanks for the review!
Yeah, I did worry about that when writing the code and expected this objection during the review, but thought it'd be best to go ahead and write the code anyway so that we'd have something to start this conversation. Noted.
I think that's a good approach. I'll wait for @candrews's input, and if it sounds good I'll get started. |
I can think of a use for a
I also think this is a good approach, thank you! |
Please ignore the latest update of the branch, I simply clicked GitHub's "Update branch" button, which is not doing a proper rebase by default. I'll update it properly once I finish the actual work. Sorry for the noise! |
New work moved to #867 |
When passed, causes clamscan to exit with a non-zero return code after printing "The virus database is older than 7 days!".