mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
safe_mkdir: Use make_dirs for recursive directory creation and run even if on the cdrom platform.
This commit is contained in:
parent
b7cd5f2096
commit
976e130a92
@ -811,11 +811,11 @@ function rmdir_recursive($path,$follow_links=false) {
|
||||
function safe_mkdir($path, $mode=0755) {
|
||||
global $g;
|
||||
|
||||
if($g['platform'] == "cdrom")
|
||||
return false;;
|
||||
// if($g['platform'] == "cdrom")
|
||||
// return false;;
|
||||
|
||||
if (!is_file($path) && !is_dir($path))
|
||||
return mkdir($path, $mode);
|
||||
return make_dirs($path, $mode);
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user