mirror of
https://github.com/curl/curl.git
synced 2026-06-01 22:14:17 +03:00
badwords: exclude wordlist input file from search
To avoid hitting all lines in it. It doesn't happen in curl at the moment, but may happen in the future or in other projects using this script. Closes #21819
This commit is contained in:
parent
5364e6e60e
commit
6ff5c8ac4a
1 changed files with 1 additions and 1 deletions
|
|
@ -318,7 +318,7 @@ sub file {
|
|||
}
|
||||
|
||||
my @filemasks = @ARGV;
|
||||
open(my $git_ls_files, '-|', 'git', 'ls-files', '--', @filemasks) or die "Failed running git ls-files: $!";
|
||||
open(my $git_ls_files, '-|', 'git', 'ls-files', '--', ":!:$file", @filemasks) or die "Failed running git ls-files: $!";
|
||||
my @files;
|
||||
while(my $each = <$git_ls_files>) {
|
||||
chomp $each;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue