clamscan can't process excluded-dir

Ernie Grossmann via clamav-users <[email protected]> Tue, 10 Feb 2026 02:16:08 +0000
Newsgroups gmane.comp.security.virus.clamav.user
Message-ID <BL0PR06MB444982A20D2925719966C501D662A@BL0PR06MB4449.namprd06.prod.outlook.com>
Hello. Recently, clamscan stopped processing the '--exclude-dir' option. I'm using the Ubuntu LTS package (1.4.3) and cannot figure out what the issue might be. I run the same scan on two different computers, yet only one of them throws these errors. I have uninstalled/reinstalled clamav to no avail. I'm running as root and the directories do exist. Tried with and without quotes and with and without trailing slash for the excluded directory. I compared environments (printenv) and they are the same other than variables that change (PIDs, etc.).

From Konsole:
# clamscan -ir exclude-dir=/usr/bin/ /usr
exclude-dir=/usr/bin/: No such file or directory
WARNING: exclude-dir=/usr/bin/: Can't access file
^C

Has anyone experienced this and/or any idea of what else to troubleshoot?
_______________________________________________

Manage your clamav-users mailing list subscription / unsubscribe:
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/Cisco-Talos/clamav-documentation

https://docs.clamav.net/#mailing-lists-and-chat