mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
don't shell to call chmod - php does this natively
This commit is contained in:
parent
66f481ccaa
commit
4d321b3a02
@ -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 ".";
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user