diff options
author | Mavridis Philippe <[email protected]> | 2021-02-07 21:53:39 +0200 |
---|---|---|
committer | Mavridis Philippe <[email protected]> | 2021-02-07 21:55:06 +0200 |
commit | 9976c0cfc6516af25dd26ccba03e389781431825 (patch) | |
tree | b3e88fea61c8b8c699db079bff3acada197303cb /src/scanviewer.cpp | |
parent | bce9b7501ce96635e4c1c27093abe1aaae9a34b4 (diff) | |
download | klamav-9976c0cfc6516af25dd26ccba03e389781431825.tar.gz klamav-9976c0cfc6516af25dd26ccba03e389781431825.zip |
Added a new, separate options section for Archives.
Options from the Archive Limits section have been moved there.
A new option for disabling/enabling archive scanning has been added
(--scan-archives switch for clamscan). This is related to issue #15.
Signed-off-by: Mavridis Philippe <[email protected]>
Diffstat (limited to 'src/scanviewer.cpp')
-rw-r--r-- | src/scanviewer.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/scanviewer.cpp b/src/scanviewer.cpp index c6efd93..7322524 100644 --- a/src/scanviewer.cpp +++ b/src/scanviewer.cpp @@ -418,6 +418,9 @@ void ScanViewer::slotScan(const TQStringList & filepattern, int mode, bool recur // if (KlamavConfig::virusLimitsExceeded()) // options += "--block-max "; + if (!(KlamavConfig::scanArchives())) + options += "--scan-archive=no "; + if (KlamavConfig::virusEncrypted()) options += "--alert-encrypted "; |