summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorBill Marquette <billm@pfsense.org>2005-03-16 16:07:25 +0000
committerBill Marquette <billm@pfsense.org>2005-03-16 16:07:25 +0000
commit4d321b3a02f5ce91e98691eed0d3e398ae979eda (patch)
treef3cd79e8e6d7fd0fbae03e339f7df7f541a127cc /etc/inc
parent66f481ccaad9613cd6c7cbbc10fb270a8b46b446 (diff)
downloadpfsense-4d321b3a02f5ce91e98691eed0d3e398ae979eda.zip
pfsense-4d321b3a02f5ce91e98691eed0d3e398ae979eda.tar.gz
don't shell to call chmod - php does this natively
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/pfsense-utils.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index 2a6ecef..7c9b739 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
+?>
OpenPOWER on IntegriCloud