diff options
-rwxr-xr-x | scripts/vyatta-show-nat.pl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/vyatta-show-nat.pl b/scripts/vyatta-show-nat.pl index d046ab5..7997d48 100755 --- a/scripts/vyatta-show-nat.pl +++ b/scripts/vyatta-show-nat.pl @@ -10,6 +10,11 @@ sub numerically { $a <=> $b; } exit 1 if ($#ARGV != 0); my $xsl_file = $ARGV[0]; +if (! -e $xsl_file) { + print "Invalid XSL file \"$xsl_file\"\n"; + exit 1; +} + my %stats = ( source => [ ], destination => [ ], |