From: Daniel Stenberg Date: Fri, 4 Feb 2022 13:46:29 +0000 (+0100) Subject: tests/disable-scan.pl: properly detect multiple symbols per line X-Git-Tag: curl-7_82_0~127 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=60d076cee1459fd5cc8f423ad2dfa1490f266b8b;p=thirdparty%2Fcurl.git tests/disable-scan.pl: properly detect multiple symbols per line Test 1165 would fail on some systems because it didn't detect CURL_DISABLE_* symbols that were used to the right of another one on the same line! The script would only detect and extract the first one. Reported-by: Marcel Raad Fixes #8384 Closes #8388 --- diff --git a/tests/disable-scan.pl b/tests/disable-scan.pl index 65f5b03cb6..54d4625ab9 100755 --- a/tests/disable-scan.pl +++ b/tests/disable-scan.pl @@ -6,7 +6,7 @@ # | (__| |_| | _ <| |___ # \___|\___/|_| \_\_____| # -# Copyright (C) 2010 - 2021, Daniel Stenberg, , et al. +# Copyright (C) 2010 - 2022, Daniel Stenberg, , et al. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms @@ -63,7 +63,7 @@ sub scan_file { my ($source)=@_; open F, "<$source"; while() { - if(/(CURL_DISABLE_[A-Z_]+)/g) { + while(s/(CURL_DISABLE_[A-Z_]+)//) { my ($sym)=($1); $file{$sym} = $source; }