Sophos Anti-Virus for Linux: using the wildcard '*' with the ExcludeFileOnGlob option will list all files

  • Article ID: 22287
  • Rating:
  • 1 customers rated this article 3.0 out of 6
  • Updated: 06 Apr 2015

This article provides details on the ExcludeFileOnGlob savconfig option. 

Applies to the following Sophos product(s) and version(s)
Sophos Anti-Virus for Unix
Sophos Anti-Virus for Linux


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.

: 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.


If you need more information or guidance, then please contact technical support.

Rate this article

Very poor Excellent