initial commit of file from CVS for smeserver-clamav on Mon 10 Jul 08:35:52 BST 2023

This commit is contained in:
Brian Read
2023-07-10 08:35:52 +01:00
parent bfd6d39c86
commit 8a58bd853d
142 changed files with 1456 additions and 2 deletions

18
root/sbin/clamdscan Normal file
View File

@@ -0,0 +1,18 @@
#!/bin/bash
# wrapper for clamdscan to force the --fdpass parameter to avoir failure because of
# no permission to access
allargs=$@
toadd=" --fdpass "
#parse args
while [ "$#" -gt 0 ]; do
case "$1" in
--fdpass) toadd="" ;;
--stream) toadd="" ;;
esac
shift
done
#we return to systemd systemctl command unless this is one of the command we want to handle
/usr/bin/clamdscan $toadd ${allargs[*]}