From aa4850dd992036b856bea4b706ccf0fce39d3e59 Mon Sep 17 00:00:00 2001 From: cheese1 Date: Tue, 7 Apr 2020 09:33:30 +0200 Subject: [PATCH] create a unique cache-file if one has a shared tmpdir, than several instances try to write into that file and bad things start to happen (segfaults) as each instance has a unique hostname adding that to the filename solved that problem for us. --- lib/Horde/Core/Factory/Dns.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Horde/Core/Factory/Dns.php b/lib/Horde/Core/Factory/Dns.php index 742b965a9..8a0f4fca2 100644 --- a/lib/Horde/Core/Factory/Dns.php +++ b/lib/Horde/Core/Factory/Dns.php @@ -13,7 +13,7 @@ public function create(Horde_Injector $injector) if ($tmpdir = Horde::getTempDir()) { $config = array( - 'cache_file' => $tmpdir . '/horde_dns.cache', + 'cache_file' => $tmpdir . '/horde_dns.cache' . gethostname(), 'cache_size' => 100000, 'cache_type' => 'file', );