Delete temporary DNS cache file before running, as otherwise Webalizer can hang!
authorJamie Cameron <jcameron@webmin.com>
Wed, 26 Sep 2007 21:19:36 +0000 (21:19 +0000)
committerJamie Cameron <jcameron@webmin.com>
Wed, 26 Sep 2007 21:19:36 +0000 (21:19 +0000)
webalizer/webalizer-lib.pl

index bf1102c..7a13262 100644 (file)
@@ -179,6 +179,7 @@ if ($lconf->{'over'} && !&is_readonly_mode()) {
        unlink("$lconf->{'dir'}/webalizer.current");
        unlink("$lconf->{'dir'}/webalizer.hist");
        }
+unlink("$lconfig->{'dir'}/__db.dns_cache.db");
 local $user = $lconf->{'user'} || "root";
 if ($user ne "root" && -r $cfile) {
        chmod(0644, $cfile);