View | Details | Raw Unified
Collapse All | Expand All

(-) havp-0.84.orig/havp/scanners/clamlibscanner.cpp (-2 / +2 lines)
 Lines 29-35    Link Here 
    LogFile::ErrorMessage("ClamAV: Using database directory: %s\n", dbdir);
    LogFile::ErrorMessage("ClamAV: Using database directory: %s\n", dbdir);
    if ( (ret = cl_loaddbdir(dbdir, &root, &no)) != 0 )
    if ( (ret = cl_load(dbdir, &root, &no, CL_DB_STDOPT)) != 0 )
    {
    {
        LogFile::ErrorMessage("ClamAV: Could not load database: %s\n", cl_strerror(ret));
        LogFile::ErrorMessage("ClamAV: Could not load database: %s\n", cl_strerror(ret));
        return false;
        return false;
 Lines 65-71    Link Here 
        cl_settempdir(Params::GetConfigString("TEMPDIR").c_str(), 0);
        cl_settempdir(Params::GetConfigString("TEMPDIR").c_str(), 0);
        if ( (ret = cl_loaddbdir(dbdir, &root, &no)) != 0 )
        if ( (ret = cl_load(dbdir, &root, &no, CL_DB_STDOPT)) != 0 )
        {
        {
            LogFile::ErrorMessage("ClamAV: Could not reload database: %s\n", cl_strerror(ret));
            LogFile::ErrorMessage("ClamAV: Could not reload database: %s\n", cl_strerror(ret));
            return false;
            return false;