From 2b987a9e56bcaa5fd1111b539ff4e71493fd376a Mon Sep 17 00:00:00 2001 From: Chris Buechler Date: Sat, 7 May 2016 04:51:24 -0500 Subject: Use safe_mkdir on squidguard TMP. Noticed by deajan on github PR 1244 --- config/squidGuard/squidguard_configurator.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/squidGuard/squidguard_configurator.inc b/config/squidGuard/squidguard_configurator.inc index 50835610..b6b90c70 100644 --- a/config/squidGuard/squidguard_configurator.inc +++ b/config/squidGuard/squidguard_configurator.inc @@ -1995,7 +1995,7 @@ function squidguard_ramdisk($enable) # create temp ramdisk # size 300Mb very nice for work with Archive < 30Mb # this is size use physical RAM + Swap file - mkdir(SQUIDGUARD_TMP); + safe_mkdir(SQUIDGUARD_TMP); mwexec("/sbin/mdmfs -s {$ramsize}M md15 " . SQUIDGUARD_TMP); mwexec("chmod 1777 " . SQUIDGUARD_TMP); } -- cgit v1.2.3