]> gitweb.michael.orlitzky.com - valtz.git/blobdiff - valtz
Drop the "-s" option.
[valtz.git] / valtz
diff --git a/valtz b/valtz
index 12d22c937e14542e5742d111cc538c7370e07dae..b9c61714d3fd2a47bffa84dedf18a4ddb3132524 100755 (executable)
--- a/valtz
+++ b/valtz
@@ -48,13 +48,9 @@ my $VERSION = '0.8';
 
 $| = 1;
 my %opt;
-getopts('?fFhHiIqrRstT:', \%opt);
+getopts('?fFhHiIqrRtT:', \%opt);
 
 
-my $FILESUFFIXREGEXP = '('.join('|', qw/
-        ,v ~ .bak .log .old .swp .tmp
-    /).')$';
-
 # Validation errors
 my $verrs_total = 0;
 
@@ -729,11 +725,6 @@ sub do_filterfile ($$)
     }
     for my $zonefile (@zonefiles)
     {
-        unless ($opt{s})
-        {
-            next if $zonefile =~ /$FILESUFFIXREGEXP/i;
-        }
-
         my $info = 0;
     my $filehandle = \*STDIN;
     my $fopen = 1;
@@ -902,9 +893,9 @@ valtz $VERSION - validate tinydns-data files
 Usage:
  $0 [-r] [-R] [-i] tinydns-file1 [tinydns-file2...]
 
- $0 [-HiIqrRst] [-T types] -f tinydns-file1 [tinydns-file2 ...]
+ $0 [-HiIqrRt] [-T types] -f tinydns-file1 [tinydns-file2 ...]
 
- $0 valtz [-fHiIqrRst] [-T types] -F filter-file1 [filter-file2 ...]
+ $0 valtz [-fHiIqrRt] [-T types] -F filter-file1 [filter-file2 ...]
 
 Flags:
  -h           print usage information
@@ -915,7 +906,6 @@ Flags:
  -i           allow "ip" fields to be empty
  -I           include rejected lines as comments (filtering only)
  -q           don't print valid lines to standard out (filtering only)
- -s           don't skip temporary and backup files
  -t           don't ignore comment lines (filtering only)
  -T <types>   allow additional record types (advanced filtering only)
 
@@ -956,11 +946,6 @@ else
 
     for my $zonefile (sort @{$files})
     {
-        unless ($opt{s})
-        {
-            next if $zonefile =~ /$FILESUFFIXREGEXP/i;
-        }
-
     my $filehandle = \*STDIN;
     my $fopen = 1;
     if ($zonefile ne '-')