Bug 126529 - syntax error in /usr/bin/kmail_clamav.sh
Summary: syntax error in /usr/bin/kmail_clamav.sh
Status: RESOLVED FIXED
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: 1.9.1
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-30 16:43 UTC by p92
Modified: 2007-09-14 12:17 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
fix syntax error when clamd not started (371 bytes, patch)
2006-04-30 16:44 UTC, p92
Details

Note You need to log in before you can comment on or make changes to this bug.
Description p92 2006-04-30 16:43:04 UTC
Version:           1.9.1 (using KDE 3.5.2, Kubuntu Package 4:3.5.2-0ubuntu12 dapper)
Compiler:          Target: i486-linux-gnu
OS:                Linux (i686) release 2.6.15-21-686

I noticed this error in .xsession :
 /usr/bin/kmail_clamav.sh: line 38: [: =: unary operator expected
this happens when clamd is not started.
fix is trivial.
Comment 1 p92 2006-04-30 16:44:28 UTC
Created attachment 15859 [details]
fix syntax error when clamd not started
Comment 2 Allen Winter 2006-04-30 17:24:54 UTC
SVN commit 535841 by winterz:

Fix syntax error.  Patch provided by p92 AT free DOT fr.  Thanks.
BUGS: 126529


 M  +1 -1      kmail_clamav.sh  


--- branches/KDE/3.5/kdepim/kmail/avscripts/kmail_clamav.sh #535840:535841
@@ -35,7 +35,7 @@
 cat > $TEMPFILE
 
 # check for a running daemon
-if [ `ps -eo comm|grep clamd` = "clamd" ]; then
+if [ "`ps -eo comm|grep clamd`" = "clamd" ]; then
     chmod a+r $TEMPFILE
     CLAMCOMANDO="clamdscan --stdout --no-summary "
 else