Moves system related functions from utils' to utils/system'

This commit is contained in:
Felipe Zimmerle
2016-11-03 09:42:21 -03:00
parent 73c4d69174
commit f1e742c159
14 changed files with 193 additions and 102 deletions

View File

@@ -57,6 +57,7 @@ class Driver;
#include "utils.h"
#include "utils/geo_lookup.h"
#include "utils/msc_string.h"
#include "utils/msc_system.h"
#include "variables/xml.h"
#include "variables/duration.h"
#include "variables/env.h"
@@ -661,7 +662,8 @@ expression:
| CONFIG_DIR_GEO_DB
{
#ifdef WITH_GEOIP
std::string file = modsecurity::find_resource($1, driver.ref.back());
std::string file = modsecurity::utils::find_resource($1,
driver.ref.back());
if (GeoLookup::getInstance().setDataBase(file) == false) {
std::stringstream ss;
ss << "Failed to load the GeoDB from: ";