aboutsummaryrefslogtreecommitdiffstats
path: root/config/squid3/34
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-08-25 00:52:29 +0200
committerdoktornotor <notordoktor@gmail.com>2015-08-25 00:52:29 +0200
commitfbf71cdaa5dd1bf2bb0c5437873c99f6d7f0dfd2 (patch)
tree00690cee4a6c6575c0131d98761ae7791a06a3d1 /config/squid3/34
parente80663379bef10c5c0bbf1228030c6c9438278d2 (diff)
downloadpfsense-packages-fbf71cdaa5dd1bf2bb0c5437873c99f6d7f0dfd2.tar.gz
pfsense-packages-fbf71cdaa5dd1bf2bb0c5437873c99f6d7f0dfd2.tar.bz2
pfsense-packages-fbf71cdaa5dd1bf2bb0c5437873c99f6d7f0dfd2.zip
squid3 - fix a bunch of invalid chmod() calls - fixes Bug #4885
Diffstat (limited to 'config/squid3/34')
-rwxr-xr-xconfig/squid3/34/squid.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/config/squid3/34/squid.inc b/config/squid3/34/squid.inc
index 7155d560..2705ceb6 100755
--- a/config/squid3/34/squid.inc
+++ b/config/squid3/34/squid.inc
@@ -153,7 +153,7 @@ function squid_dash_z($cache_action='none') {
if (file_exists("/var/squid/cache/swap.state")) {
chown("/var/squid/cache/swap.state", SQUID_UID);
chgrp("/var/squid/cache/swap.state", SQUID_GID);
- chmod("/var/squid/cache/swap.state", "a+rw");
+ chmod("/var/squid/cache/swap.state", 0666);
}
}
@@ -308,7 +308,7 @@ function squid_install_command() {
/* make sure pinger is executable */
if (file_exists(SQUID_LOCALBASE. "/libexec/squid/pinger"))
- @chmod(SQUID_LOCALBASE. "/libexec/squid/pinger", "a+x");
+ @chmod(SQUID_LOCALBASE. "/libexec/squid/pinger", 0755);
// XXX: Is it really necessary?
if (file_exists("/usr/local/etc/rc.d/squid"))
@@ -318,7 +318,7 @@ function squid_install_command() {
// XXX: Is it really necessary? mode is set to 0755 in squid.xml
if (file_exists("/usr/local/pkg/swapstate_check.php"))
- @chmod("/usr/local/pkg/swapstate_check.php", "a+x");
+ @chmod("/usr/local/pkg/swapstate_check.php", 0755);
write_rcfile(array(
"file" => "sqp_monitor.sh",
@@ -1934,7 +1934,7 @@ function squid_resync($via_rpc="no") {
/* make sure pinger is executable */
// XXX: Is it really necessary? Who could change its permission?
if (file_exists(SQUID_LOCALBASE . "/libexec/squid/pinger"))
- exec("chmod a+x " . SQUID_LOCALBASE . "/libexec/squid/pinger");
+ @chmod(SQUID_LOCALBASE. "/libexec/squid/pinger", 0755);
$log_dir="";
// check if squid is enabled