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 +?>