diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-06-28 17:24:08 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-06-28 17:24:08 +0000 |
commit | a401df7b3ca6eb2ab3deac53b473b4eaf014c707 (patch) | |
tree | 61ac0a45e7d73730e833af44a655747a076d220c /etc | |
parent | c20ac3052560d15a4674295205c1435c62889335 (diff) | |
download | pfsense-a401df7b3ca6eb2ab3deac53b473b4eaf014c707.zip pfsense-a401df7b3ca6eb2ab3deac53b473b4eaf014c707.tar.gz |
Do not eval CVS directories
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/filter.inc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 50de5d4..994f896 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -149,17 +149,20 @@ function filter_configure() { if(file_exists("/usr/local/pkg/pf/carp_sync_client.php")) unlink("/usr/local/pkg/pf/carp_sync_client.php"); + + mwxec("/bin/rm -rf /usr/local/pkg/pf/CVS"); + /* process packager manager custom rules */ $files = return_dir_as_array("/usr/local/pkg/pf/"); if($files <> "") { foreach ($files as $file) { if($file <> "") { $text = return_filename_as_string("/usr/local/pkg/pf/" . $file); - if($text != "") { + if($text <> "" and $text <> "CVS") { if(stristr($file, ".sh") == true) { mwexec("/usr/local/pkg/pf/" . $file . " start"); } else { - if($g['booting'] == true) + //if($g['booting'] == true) echo "\t{$file}... "; eval($text); if($g['booting'] == true) |