Skip to content

Commit

Permalink
Fix src/functions/proccheck.sh (Double quote to prevent globbing and …
Browse files Browse the repository at this point in the history
…word splitting.)
  • Loading branch information
teoberi committed May 7, 2024
1 parent 5d84aca commit e76e27b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/functions/proccheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ proccheck() {
#check for Fortify source support
search_libc
libc_found="false"
if ${readelf} -d "`readlink ${1}/exe`" 2> /dev/null | grep 'NEEDED' | grep -q 'libc\.so'; then
if ${readelf} -d "$(readlink "${1}"/exe)" 2> /dev/null | grep 'NEEDED' | grep -q 'libc\.so'; then
libc_found="true"
fi
Proc_FS_filechk_func_libc="$(${readelf} -s "${use_dynamic}" "${FS_libc}" 2> /dev/null | sed -ne 's/.*__\(.*_chk\)@@.*/\1/p')"
Expand Down

0 comments on commit e76e27b

Please sign in to comment.