From 60d076cee1459fd5cc8f423ad2dfa1490f266b8b Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 4 Feb 2022 14:46:29 +0100 Subject: [PATCH] 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 --- tests/disable-scan.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }