aboutsummaryrefslogtreecommitdiffstats
path: root/config/squid3/31/squid.inc
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2015-05-05 11:51:17 -0300
committerRenato Botelho <garga@FreeBSD.org>2015-05-05 17:19:09 -0300
commit616b3aa210d815399191c59a70d46512f861d431 (patch)
tree99080b15f6fae5255f5ce14506b54f29663b6b26 /config/squid3/31/squid.inc
parentf7467fdc76c95b4d26fa524bd154b2e4d3fc029b (diff)
downloadpfsense-packages-616b3aa210d815399191c59a70d46512f861d431.tar.gz
pfsense-packages-616b3aa210d815399191c59a70d46512f861d431.tar.bz2
pfsense-packages-616b3aa210d815399191c59a70d46512f861d431.zip
Replace all calls to make_dirs() by mkdir with mode 0755 and recursive enabled
Diffstat (limited to 'config/squid3/31/squid.inc')
-rw-r--r--config/squid3/31/squid.inc10
1 files changed, 5 insertions, 5 deletions
diff --git a/config/squid3/31/squid.inc b/config/squid3/31/squid.inc
index ef346e1a..e6de88c4 100644
--- a/config/squid3/31/squid.inc
+++ b/config/squid3/31/squid.inc
@@ -112,7 +112,7 @@ function squid_dash_z() {
if(!is_dir($cachedir.'/')) {
log_error("Creating Squid cache dir $cachedir");
- make_dirs($cachedir);
+ @mkdir($cachedir, 0755, true);
// Double check permissions here, should be safe to recurse cache dir if it's small here.
mwexec("/usr/sbin/chown -R proxy:proxy $cachedir");
}
@@ -307,7 +307,7 @@ function squid_install_command() {
SQUID_BASE,
SQUID_LIB,
SQUID_SSL_DB ) as $dir) {
- make_dirs($dir);
+ @mkdir($dir, 0755, true);
squid_chown_recursive($dir, 'proxy', 'proxy');
}
@@ -806,7 +806,7 @@ function squid_resync_general() {
$logdir = ($settings['log_dir'] ? $settings['log_dir'] : '/var/squid/logs');
if (! is_dir($logdir)){
- make_dirs($logdir);
+ @mkdir($logdir, 0755, true);
squid_chown_recursive($logdir, 'proxy', 'proxy');
}
$logdir_cache = $logdir . '/cache.log';
@@ -1445,7 +1445,7 @@ function squid_resync() {
SQUID_BASE,
SQUID_LIB,
SQUID_SSL_DB ) as $dir) {
- make_dirs($dir);
+ @mkdir($dir, 0755, true);
chown($dir, 'proxy');
chgrp($dir, 'proxy');
squid_chown_recursive($dir, 'proxy', 'proxy');
@@ -1486,7 +1486,7 @@ function squid_resync() {
if ($log_dir != ""){
if(!is_dir($log_dir)) {
log_error("Creating squid log dir $log_dir");
- make_dirs($log_dir);
+ @mkdir($log_dir, 0755, true);
squid_chown_recursive($log_dir, 'proxy', 'proxy');
}