From fa35df122d46421247e76d164a92d29f5dc013cc Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 7 Mar 2005 02:19:04 +0000 Subject: [PATCH] * Full path to killall * Extra i in regex --- etc/inc/pfsense-utils.inc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 4edabefadd..df38cadbd4 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -553,7 +553,7 @@ function resync_all_package_configs_bootup($show_message) { if($pkg_config['additional_files_needed'] != "") { foreach($pkg_config['additional_files_needed']['item'] as $item) { $pkg_name = strrchr($item, "/"); - if(!preg_match("/.xml/i", $pkg_name)) break; + if(!preg_match("/\.xml/", $pkg_name)) break; if(!file_exists("/usr/local/pkg/" . $pkg_name)) { if($show_message == true) print "Fetching " . $pkg_name . ".\n"; log_error("Fetching missing configuration XML for " . $pkg_name); @@ -578,11 +578,11 @@ function sweep_package_processes() { foreach($config['installedpackages']['package'] as $package) { $pkg_config = parse_xml_config_pkg("/usr/local/pkg/" . $package['configurationfile'], "packagegui"); if($pkg_config['swept_processes'] <> "") { - mwexec("killall" . $pkg_config['swept_processes']); + mwexec("/usr/bin/killall " . $pkg_config['swept_processes']); log_error("Killed " . $package['name'] . "'s unnecessary processes."); - } + } } -} +} /* * gather_altq_queue_stats(): gather alq queue stats and return an array that @@ -614,4 +614,5 @@ function gather_altq_queue_stats($dont_return_root_queues) { } return $queue_stats; } -?> + +?> \ No newline at end of file