[clamav-users] Fwd: Funny --include-dir behaviour

newcomer01 newcomer01 at posteo.de
Mon Feb 13 11:27:21 UTC 2023


i have filed a bug for this now
https://github.com/Cisco-Talos/clamav/issues/836


Von / From: Clamav User Mailinglist <mailto:clamav-users at lists.clamav.net>
An / To: Clamav User Mailinglist <mailto:clamav-users at lists.clamav.net>
Gesendet / Sent: Montag, Februar 13, 2023 um 10:51 (at 10:51 AM) +0100
Betreff / Subject: [clamav-users] Funny --include-dir behaviour
this is hilarious, why this won't work?
>                  nice -n -20 clamscan \
>                  --include-dir="^/home/$SUDO_USER/.thunderbird/Marc/Mail/" \
>                  --recursive="yes" \
>                  --quiet \
>                  --infected \
>                  --alert-broken-media="no" \
>                  --database="/var/lib/clamav" \
>                  --log="/var/log/clamav/clamscan.log"
>                  #--move="/etc/clamav/virusevent.d/Mail"
this should scan only the included path recursive

But when i do this:
>                  nice -n -20 clamscan \
>                  "/home/$SUDO_USER/.thunderbird/Marc/Mail" \
>                  --recursive="yes" \
>                  --quiet \
>                  --infected \
>                  --alert-broken-media="no" \
>                  --database="/var/lib/clamav" \
>                  --log="/var/log/clamav/clamscan.log"
>                  #--move="/etc/clamav/virusevent.d/Mail"
it worked well.
Can someone explain what's the reason for this?
Oh and the var SUDO_USER is the whoami

regards,
Marc

_______________________________________________

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


More information about the clamav-users mailing list