This article provides details on the ExcludeFileOnGlob savconfig option.
Applies to the following Sophos product(s) and version(s) Sophos Anti-Virus for LinuxSophos Anti-Virus for Unix
In Sophos Anti-Virus for Linux, using the wildcard '*' with the ExcludeFileOnGlob savconfig option, will cause all of the excluded files to be listed.
This is expected for a Linux command. The Linux shell expands '*' before passing the arguments to savconfig.
For example, running:
/opt/sophos-av/bin/savconfig ExcludeFileOnGlob /tmp/virus/*
will cause all of the excluded files in the directory /tmp/virus to be listed.
In this example:
/opt/sophos-av/bin/savconfig ExcludeFileOnGlob ‘/tmp/virus/*’
files will be passed for scanning without first being expanded by the Linux shell.
Note: Although unlikely to cause issues, please be aware files are evaluated against the ExcludeFileonGlob value every time a file is sent for scanning. So if many wildcards are used it could cause an extra overhead as the ExcludeFileonGlob values are checked.
Every comment submitted here is read (by a human) but we do not reply to specific technical questions. If you need technical support please post a question to our community. Alternatively for licensed products open a support ticket.