From e76e27b780b30e87c7a1efa0b9ed2a892d9c83f4 Mon Sep 17 00:00:00 2001 From: teoberi Date: Tue, 7 May 2024 20:50:48 +0300 Subject: [PATCH] Fix src/functions/proccheck.sh (Double quote to prevent globbing and word splitting.) --- src/functions/proccheck.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/functions/proccheck.sh b/src/functions/proccheck.sh index 194ad2b..b2baa02 100644 --- a/src/functions/proccheck.sh +++ b/src/functions/proccheck.sh @@ -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')"