From 1601d90f85fc6eebdde28101f3230b6d49fff693 Mon Sep 17 00:00:00 2001 From: Daniel Stefan Haischt Date: Thu, 17 Aug 2006 07:24:00 +0000 Subject: fix: wrong iteration over binary files array --- packages/freenas/pkg/freenas.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'packages/freenas') 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); } } -- cgit v1.2.3