diff options
author | justdave%syndicomm.com <> | 2003-08-24 15:45:05 +0200 |
---|---|---|
committer | justdave%syndicomm.com <> | 2003-08-24 15:45:05 +0200 |
commit | 92509a8b4b5dc64fdc49e549fd5f308407e30ee4 (patch) | |
tree | 43244d9485fa52664a5ed31371908a870d808ad9 | |
parent | 404397efd02f4c9ea1a2b5ca81e6d3da793462bb (diff) | |
download | bugzilla-92509a8b4b5dc64fdc49e549fd5f308407e30ee4.tar.gz bugzilla-92509a8b4b5dc64fdc49e549fd5f308407e30ee4.tar.xz |
Bug 160422: If data/versioncache is not readable, pretend it's expired and rebuild it.
-rw-r--r-- | globals.pl | 2 |
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) { |