Skip to content

Commit

Permalink
prevent shell from interpreting the -name value. SC2061
Browse files Browse the repository at this point in the history
  • Loading branch information
reubenmiller committed Mar 13, 2024
1 parent 9a97b11 commit e629ff4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mk/check-symbol-prefixes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e629ff4

Please sign in to comment.