aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarcelloc <marcellocoutinho@gmail.com>2011-12-21 15:32:10 -0200
committermarcelloc <marcellocoutinho@gmail.com>2011-12-21 15:32:10 -0200
commit6fed1f42c3b08ab0debd9d3a1e05202b2ba32760 (patch)
tree1f289eda74e1a53e31ced3ecfa7870d2a6a2fc19
parent024b77d4f76832a1722139a9727ddb3a9ba6345a (diff)
downloadpfsense-packages-6fed1f42c3b08ab0debd9d3a1e05202b2ba32760.tar.gz
pfsense-packages-6fed1f42c3b08ab0debd9d3a1e05202b2ba32760.tar.bz2
pfsense-packages-6fed1f42c3b08ab0debd9d3a1e05202b2ba32760.zip
postfix - fix system.inc crash in pfsense 2.0.1
-rw-r--r--config/postfix/postfix.inc13
-rw-r--r--pkg_config.8.xml4
-rw-r--r--pkg_config.8.xml.amd642
3 files changed, 9 insertions, 10 deletions
diff --git a/config/postfix/postfix.inc b/config/postfix/postfix.inc
index 182f9d00..4d203474 100644
--- a/config/postfix/postfix.inc
+++ b/config/postfix/postfix.inc
@@ -300,14 +300,13 @@ function sync_package_postfix() {
$found_mail=0;
foreach ($sys_log as $line){
$new_line=preg_replace('/mail.(.|crit);/',$mail_syslog,$line);
- #set syslog entry mail.* %/var/log/maillog when log_to = system
- if (preg_match ('/mail.(.|crit);/',$line) && $postfix_config['log_to'] =="maillog")
+ if (preg_match('/mail.*system.log/',$line) && $postfix_config['log_to'] =="maillog"){
$new_sys_log .= 'mail.*'."\t\t\t\t\t\t".'/var/log/maillog'."\n";
- #remove syslog entry mail.* %/var/log/maillog when log_to != system
- if (preg_match ("/^mail/",$line))
- $new_sys_log .="";
- else
- $new_sys_log .= $new_line;
+ }
+ if (preg_match('/maillog/',$line)){
+ $new_line ="";
+ }
+ $new_sys_log .= $new_line;
}
if (!file_exists('/root/system.inc.backup')) {
copy ($sys_log_file,'/root/system.inc.backup');
diff --git a/pkg_config.8.xml b/pkg_config.8.xml
index d02e6422..117057b2 100644
--- a/pkg_config.8.xml
+++ b/pkg_config.8.xml
@@ -366,8 +366,8 @@
<config_file>http://www.pfsense.com/packages/config/postfix/postfix.xml</config_file>
<pkginfolink>http://forum.pfsense.org/index.php/topic,40622.0.html</pkginfolink>
<depends_on_package_base_url>http://files.pfsense.org/packages/8/All/</depends_on_package_base_url>
- <depends_on_package>postfix-2.8.5,1.tbz</depends_on_package>
- <version>2.8.5,1 pkg v.2.3.2</version>
+ <depends_on_package>postfix-2.8.7,1.tbz</depends_on_package>
+ <version>2.8.7,1 pkg v.2.3.3</version>
<status>RC1</status>
<required_version>2.0</required_version>
<configurationfile>postfix.xml</configurationfile>
diff --git a/pkg_config.8.xml.amd64 b/pkg_config.8.xml.amd64
index dbb7e281..d01df0c8 100644
--- a/pkg_config.8.xml.amd64
+++ b/pkg_config.8.xml.amd64
@@ -455,7 +455,7 @@
<depends_on_package>postfix-2.8.7,1.tbz</depends_on_package>
<depends_on_package>perl-5.12.4_3.tbz</depends_on_package>
<depends_on_package_pbi>postfix-2.8.5-amd64.pbi</depends_on_package_pbi>
- <version>2.8.7,1 pkg v.2.3.2</version>
+ <version>2.8.7,1 pkg v.2.3.3</version>
<status>RC1</status>
<required_version>2.0</required_version>
<configurationfile>postfix.xml</configurationfile>