From 27f2dcf7a12e9155c134b5bd8a6e2dbfc9ba6677 Mon Sep 17 00:00:00 2001 From: Richard Mastop Date: Wed, 2 Aug 2017 00:54:11 +0200 Subject: [PATCH] copy file instead of renaming it. As stated in thread; fixes #5050 --- plugins/UserCountry/GeoIPAutoUpdater.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/UserCountry/GeoIPAutoUpdater.php b/plugins/UserCountry/GeoIPAutoUpdater.php index 77636afdd14..acfbf321578 100755 --- a/plugins/UserCountry/GeoIPAutoUpdater.php +++ b/plugins/UserCountry/GeoIPAutoUpdater.php @@ -268,7 +268,7 @@ public static function unzipDownloadedFile($path, $unlink = false) } $tempFile = GeoIp::getPathForGeoIpDatabase($tempFilename); - rename($tempFile, $oldDbFile); + copy($tempFile, $oldDbFile); // delete original archive if ($unlink) {