summaryrefslogtreecommitdiff
path: root/mirror.php
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-05-23 17:15:28 +0000
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-05-23 17:15:28 +0000
commit8affe69c351110b488d485bbafcb777beaca4862 (patch)
tree3399d82e770b1210866c75d4641fa6911983ff30 /mirror.php
parentfef9a28734a29b115328cd63e9f16911871c60b5 (diff)
mirror.php: don't resolve links when getting the ctime
Diffstat (limited to 'mirror.php')
-rw-r--r--mirror.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mirror.php b/mirror.php
index 57b01cf..cb48b43 100644
--- a/mirror.php
+++ b/mirror.php
@@ -35,7 +35,7 @@ if (!file_exists($root.'/'.$filename)) {
} else {
$mirror = $tier0_url;
if (!should_force_tier0($filename)) {
- $ctime = filectime($root.'/'.$filename);
+ $ctime = lstat($root.'/'.$filename)['ctime'];
// TODO: weight by GeoIP or quality or something?
$mirrors = array();
foreach ($mirrors_urls as $mirrors_url) {