From: Frank Ch. Eigler Date: Mon, 13 May 2024 15:07:32 +0000 (-0400) Subject: Support nullglob in profile.sh.in X-Git-Tag: elfutils-0.192~89 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8e1ab679d6f3822e81de13a113336d94093b00f3;p=thirdparty%2Felfutils.git Support nullglob in profile.sh.in Don't block on stdin when /etc/debuginfod/*.certpath expands to nothing. Signed-off-by: Andreas Schwab --- diff --git a/config/profile.sh.in b/config/profile.sh.in index 911c7a43..5e86f433 100644 --- a/config/profile.sh.in +++ b/config/profile.sh.in @@ -11,7 +11,7 @@ if [ -z "$DEBUGINFOD_URLS" ]; then fi if [ -z "$DEBUGINFOD_IMA_CERT_PATH" ]; then - DEBUGINFOD_IMA_CERT_PATH=$(cat "@sysconfdir@/debuginfod"/*.certpath 2>/dev/null | tr '\n' ':' || :) + DEBUGINFOD_IMA_CERT_PATH=$(cat /dev/null "@sysconfdir@/debuginfod"/*.certpath 2>/dev/null | tr '\n' ':' || :) [ -n "$DEBUGINFOD_IMA_CERT_PATH" ] && export DEBUGINFOD_IMA_CERT_PATH || unset DEBUGINFOD_IMA_CERT_PATH fi unset prefix