mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
IPS: Do not try to show rules when stat on rules tarball fails
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
committed by
Arne Fitzenreiter
parent
c5c1f30447
commit
9268cddfd2
@@ -1091,6 +1091,7 @@ if (%idsrules) {
|
||||
# Call stat on the rulestarball.
|
||||
my $stat = stat("$IDS::rulestarball");
|
||||
|
||||
if (defined $stat) {
|
||||
# Get timestamp the file creation.
|
||||
my $mtime = $stat->mtime;
|
||||
|
||||
@@ -1200,6 +1201,7 @@ END
|
||||
;
|
||||
&Header::closebox();
|
||||
}
|
||||
}
|
||||
|
||||
&Header::closebigbox();
|
||||
&Header::closepage();
|
||||
|
||||
Reference in New Issue
Block a user