|
|
| |
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; |
|
|
| |
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; |