From 4d321b3a02f5ce91e98691eed0d3e398ae979eda Mon Sep 17 00:00:00 2001 From: Bill Marquette Date: Wed, 16 Mar 2005 16:07:25 +0000 Subject: [PATCH] don't shell to call chmod - php does this natively --- etc/inc/pfsense-utils.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 2a6ecef64f..7c9b739f15 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -683,7 +683,8 @@ function get_pkg_depends($pkg_name, $filetype = ".xml", $format = "files", $retu if(!file_exists($prefix . $pkg_name)) { log_error("Fetching missing dependency (" . $depend_name . ") for " . $pkg_name); mwexec("/usr/local/bin/fetch -o " . $prefix . $depend_file . " " . $item['name']['0']); - if($item['chmod'] != "") mwexec("/bin/chmod " . $item['chmod'] . $prefix . $depend_file); // Handle chmods. + if($item['chmod'] != "") + chmod($prefix . $depend_file, $item['chmod']); // Handle chmods. } switch ($format) { case "files": @@ -897,4 +898,4 @@ function sync_package($pkg_name, $sync_depends = true, $show_message = false) { } // if($show_message == true) print "."; } -?> \ No newline at end of file +?>