summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/vyatta-show-nat.pl5
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 => [ ],