aboutsummaryrefslogtreecommitdiffstats
path: root/packages/freenas/pkg
diff options
context:
space:
mode:
authorDaniel Stefan Haischt <dsh@pfsense.org>2006-08-17 07:24:00 +0000
committerDaniel Stefan Haischt <dsh@pfsense.org>2006-08-17 07:24:00 +0000
commit1601d90f85fc6eebdde28101f3230b6d49fff693 (patch)
tree661349d12e61a41a59a1fd3ccc7622089c809b17 /packages/freenas/pkg
parent861b9752326ef214baa5e46682e25bc7a780dfbd (diff)
downloadpfsense-packages-1601d90f85fc6eebdde28101f3230b6d49fff693.tar.gz
pfsense-packages-1601d90f85fc6eebdde28101f3230b6d49fff693.tar.bz2
pfsense-packages-1601d90f85fc6eebdde28101f3230b6d49fff693.zip
fix: wrong iteration over binary files array
Diffstat (limited to 'packages/freenas/pkg')
-rw-r--r--packages/freenas/pkg/freenas.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/freenas/pkg/freenas.inc b/packages/freenas/pkg/freenas.inc
index 52418e8a..8c317bf5 100644
--- a/packages/freenas/pkg/freenas.inc
+++ b/packages/freenas/pkg/freenas.inc
@@ -52,10 +52,10 @@ function oninstall_copy_kernel_binaries($action = "install") {
"target" => "/boot/kernel/ntfs.ko");
if ($action == "install") {
- while (list($source, $target) = each($binaries)) {
+ while (list(, $val) = each($binaries)) {
$static_output .= "FreeNAS: Moving binary file... ";
update_output_window($static_output);
- rename($source, $target);
+ rename($val['source'], $val['target']);
$static_output .= "done.\n";
update_output_window($static_output);
}
@@ -148,11 +148,11 @@ function oninstall_copy_misc_binaries($action = "install") {
"target" => "/usr/sbin/rpcbind");
if ($action == "install") {
- while (list($source, $target) = each($binaries)) {
+ while (list(, $val) = each($binaries)) {
mwexec("install -s {$source} ${target}");
}
} else if ($action == "deinstall") {
- while (list($source, $target) = each($binaries)) {
+ while (list($val['source'], $val['target']) = each($binaries)) {
unlink($target);
}
}