From 739aa4887ec2d93ea87fe8acad1863675da61d03 Mon Sep 17 00:00:00 2001 From: Reuben Miller Date: Wed, 13 Mar 2024 22:56:38 +0100 Subject: [PATCH] prevent shell from interpreting the -name value. SC2061 I agree to license my contributions to each file under the terms given at the top of each file I changed. --- mk/check-symbol-prefixes.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mk/check-symbol-prefixes.sh b/mk/check-symbol-prefixes.sh index 247dec9930..60b079a2dc 100755 --- a/mk/check-symbol-prefixes.sh +++ b/mk/check-symbol-prefixes.sh @@ -44,7 +44,7 @@ nm_exe="${llvm_root}/llvm-nm" # # This is very liberal in filtering out symbols that "look like" # Rust-compiler-generated symbols. -find "target/$target" -type f -name libring-*.rlib | while read -r infile; do +find "target/$target" -type f -name "libring-*.rlib" | while read -r infile; do bad=$($nm_exe --defined-only --extern-only --print-file-name "$infile" \ | ( grep -v -E " . _?(__imp__ZN4ring|ring_core_|__rustc|_ZN|DW.ref.rust_eh_personality)" || [[ $? == 1 ]] )) if [ -n "${bad-}" ]; then