Bug 126529

Summary: syntax error in /usr/bin/kmail_clamav.sh
Product: [Applications] kmail Reporter: p92
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 1.9.1   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: fix syntax error when clamd not started

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