aboutsummaryrefslogtreecommitdiffstats
path: root/config/sarg
diff options
context:
space:
mode:
authorccesario <carloscesario@gmail.com>2013-10-02 13:45:40 -0300
committerccesario <carloscesario@gmail.com>2013-10-02 13:45:40 -0300
commit30012ddf4bd78090db45bcb53e55cc1955cf1d39 (patch)
tree4c73cab972912c54abf7ee3582119ca0bb9b1c2a /config/sarg
parenta3f1dc175bb07358a172bc32eac3151e5d76f160 (diff)
downloadpfsense-packages-30012ddf4bd78090db45bcb53e55cc1955cf1d39.tar.gz
pfsense-packages-30012ddf4bd78090db45bcb53e55cc1955cf1d39.tar.bz2
pfsense-packages-30012ddf4bd78090db45bcb53e55cc1955cf1d39.zip
Fix the problem "SARG: Cannot set the locale LC_ALL to the environment variable"
Diffstat (limited to 'config/sarg')
-rw-r--r--config/sarg/sarg.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/sarg/sarg.inc b/config/sarg/sarg.inc
index 97abc138..499c1973 100644
--- a/config/sarg/sarg.inc
+++ b/config/sarg/sarg.inc
@@ -142,7 +142,7 @@ EOF;
}
#create a new file to speedup find search
file_put_contents("/root/sarg_run_{$id}.sh",$gzip_script,LOCK_EX);
- mwexec($cmd. " ".$args);
+ mwexec("export LC_ALL=C && " .$cmd. " ".$args);
#check if there is a script to run after file save
if (is_array($config['installedpackages']['sarg']))
switch ($config['installedpackages']['sarg']['config'][0]['proxy_server']){