]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - config/guardian/guardian.pl
Fixed guardian ignore file handling and linefead detection.
[people/pmueller/ipfire-2.x.git] / config / guardian / guardian.pl
index b5c3f9c16ae78c3499b5c2f062396f6ffd784177..8c2e3b7046e98a3094bd1f28e8a7908dbbd7c866 100644 (file)
@@ -211,7 +211,8 @@ sub build_ignore_hash {
        if ($ignorefile ne "") {
                open (IGNORE, $ignorefile);
                while (<IGNORE>) {
-                       chop;
+                       $_=~ s/\s+$//;
+                       chomp;
                        next if (/\#/);  #skip comments
                        next if (/^\s*$/); # and blank lines
                        $ignore{$_}=1;