Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 58978 - typo in /etc/init.d/clamd clamav-0.75
Summary: typo in /etc/init.d/clamd clamav-0.75
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Antivirus Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 58960
  Show dependency tree
 
Reported: 2004-07-31 02:12 UTC by Adam Mercer
Modified: 2004-08-04 15:48 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to fix /etc/init.d/clamd (clamd.diff,394 bytes, patch)
2004-07-31 02:15 UTC, Adam Mercer
Details | Diff
Fix typo and implement proper log option handling. (clamd.rc.patch,609 bytes, patch)
2004-08-03 06:26 UTC, Mathias Gug
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.