Commit d550fa97 authored by Byron Jones's avatar Byron Jones

Bug 747110: Fix race condition in showdependencygraph.cgi triggering "use of…

Bug 747110: Fix race condition in showdependencygraph.cgi triggering "use of uninitialized value" warnings. r=LpSolit, a=LpSolit
parent b66b079b
......@@ -296,7 +296,8 @@ foreach my $f (@files)
# symlinks), this can't escape to delete anything it shouldn't
# (unless someone moves the location of $webdotdir, of course)
trick_taint($f);
if (file_mod_time($f) < $since) {
my $mtime = file_mod_time($f);
if ($mtime && $mtime < $since) {
unlink $f;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment