Re: clamscan can't process excluded-dir

Ernie Grossmann via clamav-users <[email protected]> Tue, 10 Feb 2026 02:50:21 +0000
Newsgroups gmane.comp.security.virus.clamav.user
Message-ID <BL0PR06MB44493172BDA3BABC0898273CD662A@BL0PR06MB4449.namprd06.prod.outlook.com>
--===============5121871352875975581==
Content-Language: en-US
Content-Type: multipart/alternative;
	boundary="_000_BL0PR06MB44493172BDA3BABC0898273CD662ABL0PR06MB4449namp_"

--_000_BL0PR06MB44493172BDA3BABC0898273CD662ABL0PR06MB4449namp_
Content-Type: text/plain; charset="iso-2022-jp"
Content-Transfer-Encoding: quoted-printable

That was it. Thank you!
________________________________
From: clamav-users <[email protected]> on behalf of Mas=
aru Nomiya via clamav-users <[email protected]>
Sent: Monday, February 9, 2026 19:40
To: [email protected] <[email protected]>
Cc: Masaru Nomiya <[email protected]>
Subject: Re: [clamav-users] clamscan can't process excluded-dir

Hello,

In the Message;

  Subject    : [clamav-users] clamscan can't process excluded-dir
  Message-ID : <[email protected]=
06.prod.outlook.com>
  Date & Time: Tue, 10 Feb 2026 02:16:08 +0000

[EG] =3D=3D Ernie Grossmann via clamav-users <[email protected]=
> has written:

EG>  Hello. Recently, clamscan stopped processing the '--exclude-dir'
EG>  option. I'm using the Ubuntu LTS package (1.4.3) and cannot
EG>  figure out what the issue might be. I run the same scan on two
EG>  different computers, yet only one of them throws these errors. I
EG>  have uninstalled/reinstalled clamav to no avail. I'm running as
EG>  root and the directories do exist. Tried with and without quotes
EG>  and with and without trailing slash for the excluded directory. I
EG>  compared environments (printenv) and they are the same other than
EG>  variables that change (PIDs, etc.).

EG>  >From Konsole:
EG>  # clamscan -ir exclude-dir=3D/usr/bin/ /usr
EG>  exclude-dir=3D/usr/bin/: No such file or directory
EG>  WARNING: exclude-dir=3D/usr/bin/: Can't access file

exclude-dir=3D/usr/bin/ /usr --> --exclude-dir=3D/usr/bin/ /usr

Best regards.

--
=1B$B(.(,(,(/WD=1B(B    Masaru Nomiya                  mail-to: nomiya @ la=
ke.dti.ne.jp
=1B$B(-!@!?WD=1B(B
=1B$B(1(,(,(0=1B(B     =1B$B!!!!=1B(B "It was a sin to be delicious. -- Abs=
tinence preached by
                    Christianity."

     -- "The History of the mind in French Cuisine" Chikako Hashimoto (in J=
P) --
_______________________________________________

Manage your clamav-users mailing list subscription / unsubscribe:
https://na01.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Flists.cl=
amav.net%2Fmailman%2Flistinfo%2Fclamav-users&data=3D05%7C02%7C%7C64eb264f09=
284ac1993b08de684dd6e5%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C6390628=
80766320838%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDA=
wMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=3D=
%2FXhIHUzj2xcZMekLLE8RcjuTLAxZI9jeY5lZKAuu%2BFE%3D&reserved=3D0<https://lis=
ts.clamav.net/mailman/listinfo/clamav-users>


Help us build a comprehensive ClamAV guide:
https://na01.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fgithub.c=
om%2FCisco-Talos%2Fclamav-documentation&data=3D05%7C02%7C%7C64eb264f09284ac=
1993b08de684dd6e5%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C639062880766=
356954%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIs=
IlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=3DJrQY2=
pfgUpVW2Kl5e%2FO%2F%2BIfyOC%2F0lIRONENKNXSz0xk%3D&reserved=3D0<https://gith=
ub.com/Cisco-Talos/clamav-documentation>

https://na01.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fdocs.cla=
mav.net%2F%23mailing-lists-and-chat&data=3D05%7C02%7C%7C64eb264f09284ac1993=
b08de684dd6e5%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C6390628807663898=
59%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAi=
OiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=3D%2BHchXf8=
aKYpn4Q9nWS51HIrwxvt%2BmgMnF37sBXh9h8I%3D&reserved=3D0<https://docs.clamav.=
net/#mailing-lists-and-chat>

--_000_BL0PR06MB44493172BDA3BABC0898273CD662ABL0PR06MB4449namp_
Content-Type: text/html; charset="iso-2022-jp"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-2022-=
jp">
<style type=3D"text/css" style=3D"display:none;"> P {margin-top:0;margin-bo=
ttom:0;} </style>
</head>
<body dir=3D"ltr">
<div class=3D"elementToProof" style=3D"font-family: &quot;Calibri&quot;, &q=
uot;Helvetica&quot;, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
That was it. Thank you!</div>
<div id=3D"appendonsend"></div>
<hr style=3D"display:inline-block;width:98%" tabindex=3D"-1">
<div id=3D"divRplyFwdMsg" dir=3D"ltr"><font face=3D"Calibri, sans-serif" st=
yle=3D"font-size:11pt" color=3D"#000000"><b>From:</b> clamav-users &lt;clam=
[email protected]&gt; on behalf of Masaru Nomiya via clamav=
-users &lt;[email protected]&gt;<br>
<b>Sent:</b> Monday, February 9, 2026 19:40<br>
<b>To:</b> [email protected] &lt;[email protected]&=
gt;<br>
<b>Cc:</b> Masaru Nomiya &lt;[email protected]&gt;<br>
<b>Subject:</b> Re: [clamav-users] clamscan can't process excluded-dir</fon=
t>
<div>&nbsp;</div>
</div>
<div class=3D"BodyFragment"><font size=3D"2"><span style=3D"font-size:11pt;=
">
<div class=3D"PlainText">Hello,<br>
<br>
In the Message; <br>
<br>
&nbsp; Subject&nbsp;&nbsp;&nbsp; : [clamav-users] clamscan can't process ex=
cluded-dir<br>
&nbsp; Message-ID : &lt;BL0PR06MB444982A20D2925719966C501D662A@BL0PR06MB444=
9.namprd06.prod.outlook.com&gt;<br>
&nbsp; Date &amp; Time: Tue, 10 Feb 2026 02:16:08 +0000<br>
<br>
[EG] =3D=3D Ernie Grossmann via clamav-users &lt;[email protected].=
net&gt; has written:<br>
<br>
EG&gt;&nbsp; Hello. Recently, clamscan stopped processing the '--exclude-di=
r'<br>
EG&gt;&nbsp; option. I'm using the Ubuntu LTS package (1.4.3) and cannot<br=
>
EG&gt;&nbsp; figure out what the issue might be. I run the same scan on two=
<br>
EG&gt;&nbsp; different computers, yet only one of them throws these errors.=
 I<br>
EG&gt;&nbsp; have uninstalled/reinstalled clamav to no avail. I'm running a=
s<br>
EG&gt;&nbsp; root and the directories do exist. Tried with and without quot=
es<br>
EG&gt;&nbsp; and with and without trailing slash for the excluded directory=
. I<br>
EG&gt;&nbsp; compared environments (printenv) and they are the same other t=
han<br>
EG&gt;&nbsp; variables that change (PIDs, etc.).<br>
<br>
EG&gt;&nbsp; &gt;From Konsole:<br>
EG&gt;&nbsp; # clamscan -ir exclude-dir=3D/usr/bin/ /usr<br>
EG&gt;&nbsp; exclude-dir=3D/usr/bin/: No such file or directory<br>
EG&gt;&nbsp; WARNING: exclude-dir=3D/usr/bin/: Can't access file<br>
<br>
exclude-dir=3D/usr/bin/ /usr --&gt; --exclude-dir=3D/usr/bin/ /usr<br>
<br>
Best regards.<br>
<br>
--<br>
=1B$B(.(,(,(/WD=1B(B&nbsp;&nbsp;&nbsp; Masaru Nomiya&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp; mail-to: nomiya @ lake.dti.ne.jp<br>
=1B$B(-!@!?WD=1B(B<br>
=1B$B(1(,(,(0=1B(B&nbsp;&nbsp;&nbsp;&nbsp; =1B$B!!!!=1B(B &quot;It was a si=
n to be delicious. -- Abstinence preached by<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Christianity.&quot;<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp; -- &quot;The History of the mind in French Cuisine=
&quot; Chikako Hashimoto (in JP) --<br>
_______________________________________________<br>
<br>
Manage your clamav-users mailing list subscription / unsubscribe:<br>
<a href=3D"https://lists.clamav.net/mailman/listinfo/clamav-users">https://=
na01.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Flists.clamav.net=
%2Fmailman%2Flistinfo%2Fclamav-users&amp;data=3D05%7C02%7C%7C64eb264f09284a=
c1993b08de684dd6e5%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C63906288076=
6320838%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCI=
sIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&amp;sdata=3D=
%2FXhIHUzj2xcZMekLLE8RcjuTLAxZI9jeY5lZKAuu%2BFE%3D&amp;reserved=3D0</a><br>
<br>
<br>
Help us build a comprehensive ClamAV guide:<br>
<a href=3D"https://github.com/Cisco-Talos/clamav-documentation">https://na0=
1.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fgithub.com%2FCisco-=
Talos%2Fclamav-documentation&amp;data=3D05%7C02%7C%7C64eb264f09284ac1993b08=
de684dd6e5%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C639062880766356954%=
7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJ=
XaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&amp;sdata=3DJrQY2pfg=
UpVW2Kl5e%2FO%2F%2BIfyOC%2F0lIRONENKNXSz0xk%3D&amp;reserved=3D0</a><br>
<br>
<a href=3D"https://docs.clamav.net/#mailing-lists-and-chat">https://na01.sa=
felinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fdocs.clamav.net%2F%23ma=
iling-lists-and-chat&amp;data=3D05%7C02%7C%7C64eb264f09284ac1993b08de684dd6=
e5%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C639062880766389859%7CUnknow=
n%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiI=
sIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&amp;sdata=3D%2BHchXf8aKYpn4Q=
9nWS51HIrwxvt%2BmgMnF37sBXh9h8I%3D&amp;reserved=3D0</a><br>
</div>
</span></font></div>
</body>
</html>

--_000_BL0PR06MB44493172BDA3BABC0898273CD662ABL0PR06MB4449namp_--

--===============5121871352875975581==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________

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

--===============5121871352875975581==--