diff options
author | Renato Botelho <garga@FreeBSD.org> | 2015-05-05 11:52:31 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2015-05-05 11:52:31 -0300 |
commit | f6f04195fe0970883cb76804e3d9a018468ef021 (patch) | |
tree | b48a349b6ee01748dac6ff6aba989c6700e8e009 /etc | |
parent | fd2526291a9672aa5119120495c03c4d357297f5 (diff) | |
download | pfsense-f6f04195fe0970883cb76804e3d9a018468ef021.zip pfsense-f6f04195fe0970883cb76804e3d9a018468ef021.tar.gz |
Remove make_dirs(), it was only being used by packages but now all calls were replaced by mkdir()
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/util.inc | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/etc/inc/util.inc b/etc/inc/util.inc index 6dc24de..3fafdfb 100644 --- a/etc/inc/util.inc +++ b/etc/inc/util.inc @@ -1726,23 +1726,6 @@ function safe_mkdir($path, $mode=0755) { } /* - * make_dirs($path, $mode = 0755) - * create directory tree recursively (mkdir -p) - */ -function make_dirs($path, $mode = 0755) { - $base = ''; - foreach (explode('/', $path) as $dir) { - $base .= "/$dir"; - if (!is_dir($base)) { - if (!@mkdir($base, $mode)) { - return false; - } - } - } - return true; -} - -/* * get_sysctl($names) * Get values of sysctl OID's listed in $names (accepts an array or a single * name) and return an array of key/value pairs set for those that exist |