Skip to content
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

Exit with different exit code than 2 when malware hits #391

Open
WilliamDEdwards opened this issue Oct 15, 2021 · 0 comments
Open

Exit with different exit code than 2 when malware hits #391

WilliamDEdwards opened this issue Oct 15, 2021 · 0 comments

Comments

@WilliamDEdwards
Copy link

When malware hits > 1, maldet exits with exit code 2. I think using a dedicated exit code would be useful, so that hooks don't have to grep the output for scan completed on : [...] malware hits [...].

Maybe the EX_DATAERR sysexit would be a good choice.

I have only tested this with --scan-recent.

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

No branches or pull requests

1 participant