diff options
Diffstat (limited to 'net-analyzer/snortalog/files')
-rw-r--r-- | net-analyzer/snortalog/files/snortalog-2.3.0-limit-args.diff | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/net-analyzer/snortalog/files/snortalog-2.3.0-limit-args.diff b/net-analyzer/snortalog/files/snortalog-2.3.0-limit-args.diff new file mode 100644 index 000000000000..ed3835ad4317 --- /dev/null +++ b/net-analyzer/snortalog/files/snortalog-2.3.0-limit-args.diff @@ -0,0 +1,13 @@ +--- snortalog.pl.orig 2005-03-20 11:50:08.073875696 +0000 ++++ snortalog.pl 2005-03-20 11:50:15.618728704 +0000 +@@ -347,6 +347,10 @@ + $val_opt_p = $opt{p} if ( $opt_p == 1 ); + $val_opt_g = $opt{g} if ( $opt_g == 1 ); + $val_opt_l = $opt{l} if ( $opt_l == 1 ); ++ if ( $opt_h == 1 && $opt_p == 1) { ++ print "Error: You can only create a pdf or an html file, not both simultaneously.\n"; ++ exit(); ++ } + # + # Test if kind of logs are selected else all arent chosen by default + # |