summaryrefslogtreecommitdiffstats
path: root/globals.pl
diff options
context:
space:
mode:
authorjustdave%syndicomm.com <>2003-08-24 15:45:05 +0200
committerjustdave%syndicomm.com <>2003-08-24 15:45:05 +0200
commit92509a8b4b5dc64fdc49e549fd5f308407e30ee4 (patch)
tree43244d9485fa52664a5ed31371908a870d808ad9 /globals.pl
parent404397efd02f4c9ea1a2b5ca81e6d3da793462bb (diff)
downloadbugzilla-92509a8b4b5dc64fdc49e549fd5f308407e30ee4.tar.gz
bugzilla-92509a8b4b5dc64fdc49e549fd5f308407e30ee4.tar.xz
Bug 160422: If data/versioncache is not readable, pretend it's expired and rebuild it.
Diffstat (limited to 'globals.pl')
-rw-r--r--globals.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/globals.pl b/globals.pl
index c360c5652..a22cef196 100644
--- a/globals.pl
+++ b/globals.pl
@@ -351,7 +351,7 @@ $::VersionTableLoaded = 0;
sub GetVersionTable {
return if $::VersionTableLoaded;
my $mtime = ModTime("data/versioncache");
- if (!defined $mtime || $mtime eq "") {
+ if (!defined $mtime || $mtime eq "" || !-r "data/versioncache") {
$mtime = 0;
}
if (time() - $mtime > 3600) {