diff options
author | Ermal Luçi <eri@pfsense.org> | 2009-05-12 12:06:29 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2009-05-12 12:06:29 +0000 |
commit | 792263588d88164b91b554e457bf57a57a790426 (patch) | |
tree | b61108578027875149cf8451c2eff1ba2780941a /etc/inc/filter.inc | |
parent | c1ba39b21987bfb6e4032c0f5618baf9cc6d630c (diff) | |
download | pfsense-792263588d88164b91b554e457bf57a57a790426.zip pfsense-792263588d88164b91b554e457bf57a57a790426.tar.gz |
Use the php copy function instead of forking just for copying a file.
Diffstat (limited to 'etc/inc/filter.inc')
-rw-r--r-- | etc/inc/filter.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 7f2ee20..0ae5866 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -175,7 +175,7 @@ function filter_configure_sync() { // Copy rules.debug to rules.debug.old if(file_exists("{$g['tmp_path']}/rules.debug")) - exec("/bin/cp {$g['tmp_path']}/rules.debug {$g['tmp_path']}/rules.debug.old"); + copy("{$g['tmp_path']}/rules.debug", "{$g['tmp_path']}/rules.debug.old"); $fd = fopen("{$g['tmp_path']}/rules.debug", "w"); $rules .= "{$aliases} \n"; |