aboutsummaryrefslogtreecommitdiffstats
path: root/config/syslog-ng
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-11-01 15:39:36 -0200
committerRenato Botelho <garga@FreeBSD.org>2013-11-01 15:39:58 -0200
commitc030cf2781c7bbef197db6f07facef35b6856c8e (patch)
treec5e787ae332e4cf258e76242e523f32c8ad0f51d /config/syslog-ng
parent5e20654577393326d9a7b87fff9f76ba3677a32b (diff)
downloadpfsense-packages-c030cf2781c7bbef197db6f07facef35b6856c8e.tar.gz
pfsense-packages-c030cf2781c7bbef197db6f07facef35b6856c8e.tar.bz2
pfsense-packages-c030cf2781c7bbef197db6f07facef35b6856c8e.zip
Restrict regex to only consider files to rotate, and ignore other params like key_file and cert_file. Fixes #3292
Diffstat (limited to 'config/syslog-ng')
-rw-r--r--config/syslog-ng/syslog-ng.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/syslog-ng/syslog-ng.inc b/config/syslog-ng/syslog-ng.inc
index 75d5bb4d..e1b4d35e 100644
--- a/config/syslog-ng/syslog-ng.inc
+++ b/config/syslog-ng/syslog-ng.inc
@@ -235,7 +235,7 @@ function syslogng_get_log_files($objects) {
foreach($objects as $object) {
if($object['objecttype'] == 'destination') {
- preg_match("/file\(['\"]([^'\"]*)['\"]/", base64_decode($object['objectparameters']), $match);
+ preg_match("/\bfile\b\(['\"]([^'\"]*)['\"]/", base64_decode($object['objectparameters']), $match);
if($match) {
$log_file = $match[1];
array_push($log_files, $log_file);
@@ -433,4 +433,4 @@ EOD;
conf_mount_rw();
write_rcfile($rc);
}
-?> \ No newline at end of file
+?>