summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-10-04 13:13:10 +0000
committerErmal <eri@pfsense.org>2010-10-04 13:13:10 +0000
commitda3ee8238aed3da265d9169d22debe27033fd327 (patch)
tree6454f2fcdf56e28686c312c51256fbcd1398f7ae /etc
parenta17027a6b30912b3afdb8d5888dce236cfa2c176 (diff)
downloadpfsense-da3ee8238aed3da265d9169d22debe27033fd327.zip
pfsense-da3ee8238aed3da265d9169d22debe27033fd327.tar.gz
Do not use mwexec when unlink can be used and is faster. This also avoids errors on log from rm(1).
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/filter.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 80e1d46..c3b0d65 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -1328,9 +1328,9 @@ function filter_nat_rules_generate() {
/* XXX: FIX ME! IPV6 */
$natrules .= "rdr on \${$FilterIflist['wan']['descr']} proto ipv6 from any to any -> {$config['diag']['ipv6nat']['ipaddr']}\n";
}
+
if(file_exists("/var/etc/inetd.conf"))
- mwexec("rm /var/etc/inetd.conf");
- touch("/var/etc/inetd.conf");
+ @unlink("/var/etc/inetd.conf");
// Open inetd.conf write handle
$inetd_fd = fopen("/var/etc/inetd.conf","w");
/* add tftp protocol helper */
OpenPOWER on IntegriCloud