Freshclam error "Incorrect argument format for option –checks (-c)" after Leopard update

Home / Apple / Freshclam error "Incorrect argument format for option –checks (-c)" after Leopard update

Someone must have screwed up something in the freshclam plist as part of the update for Leopard (2009-05). I was getting this error constantly in my system.log which was not only annoying as hell, but also kept clam from downloading new virus definitions. Anyways, here is how you fix it.

  1. use sudo and edit the file /System/Library/LaunchDaemons/org.clamav.freshclam.plist
    sudo vi /System/Library/LaunchDaemons/org.clamav.freshclam.plist
  2. Somewhere in this file you’ll find a block of code like this:
    <array>
    <string>freshclam</string>
    <string>-d</string>
    <string>-c 4</string>
    </array> </code>

    Change it to look like:
    <array>
    <string>freshclam</string>
    <string>-d</string>
    <string>-c</string>
    <string>4</string>
    </array> </code>
  3. Then use the following two sudo commands to reload the freshclam service.
    sudo launchctl unload /System/Library/LaunchDaemons/org.clamav.freshclam.plist
    sudo launchctl load /System/Library/LaunchDaemons/org.clamav.freshclam.plist

Leave a Reply