diff --git a/Shorewall-perl/Shorewall/Config.pm b/Shorewall-perl/Shorewall/Config.pm index 70515d002..50c843861 100644 --- a/Shorewall-perl/Shorewall/Config.pm +++ b/Shorewall-perl/Shorewall/Config.pm @@ -942,6 +942,7 @@ sub ensure_config_path() { sub validate_shorewall_common() { my $f = "$globals{SHAREDIR}/version"; fatal_error "$f does not exist" unless -f $f; + fatal_error "$f is empty" unless -s _; open V, '<', $f or fatal_error "Cannot open $f: $!"; my $version = ; close V;