Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 58978

Summary: typo in /etc/init.d/clamd clamav-0.75
Product: Gentoo Linux Reporter: Adam Mercer <r.a.mercer>
Component: New packagesAssignee: Antivirus Team <antivirus>
Status: RESOLVED FIXED    
Severity: normal CC: eradicator, mathias.gug
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 58960    
Attachments: patch to fix /etc/init.d/clamd
Fix typo and implement proper log option handling.

Description Adam Mercer 2004-07-31 02:12:50 UTC
There is a typo in /etc/init.d/clamd on line 15

if [ -n "$CLAMD_LOG}" -a ! -f "${CLAMD_LOG}" ]; then

instead of

if [ -n "${CLAMD_LOG}" -a ! -f "${CLAMD_LOG}" ]; then

Reproducible: Always
Steps to Reproduce:
1. /etc/init.d/clamd start with START_CLAMD=yes in /etc/conf.d/clamd
2.
3.

Actual Results:  
skymoo root # /etc/init.d/clamd start
touch: cannot touch `': No such file or directory
chown: invalid argument: `'
 * Starting clamd...                                                      [ ok ]
 * Starting freshclam...                                                  [ ok ]

Expected Results:  
skymoo root # /etc/init.d/clamd start
 * Starting clamd...                                                      [ ok ]
 * Starting freshclam...                                                  [ ok ]
Comment 1 Adam Mercer 2004-07-31 02:15:00 UTC
Created attachment 36511 [details, diff]
patch to fix /etc/init.d/clamd
Comment 2 Mathias Gug 2004-08-03 06:26:58 UTC
Created attachment 36697 [details, diff]
Fix typo and implement proper log option handling.

This patch fixes the typo and implement the fix from bug 57723 to clamd.
Comment 3 Rajiv Aaron Manglani (RETIRED) gentoo-dev 2004-08-04 15:48:27 UTC
typo fixed in cvs by eradicator. log enhancement left for bug 57723.