Use a more portable ps(1) call in the clamav script.

-e means all processes are selected on Linux's ps, while on the BSDs
and OS X it means the environment should be printed along with the
commands.

Replacing -e with -a -x should work on all platforms according to the
Linux, OS X, FreeBSD, OpenBSD and NetBSD man pages.

REVIEW:		106111
wilder-work
Raphael Kubo da Costa 14 years ago
parent b296a37483
commit 6d3f8aafff
  1. 2
      avscripts/kmail_clamav.sh

@ -35,7 +35,7 @@ export TEMPFILE
cat > $TEMPFILE
# check for a running daemon
if [ "`ps -eo comm|grep clamd`" = "clamd" ]; then
if [ "`ps -axo comm|grep clamd`" = "clamd" ]; then
chmod a+r $TEMPFILE
CLAMCOMANDO="clamdscan --stdout --no-summary "
else

Loading…
Cancel
Save