]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Support nullglob in profile.sh.in
authorFrank Ch. Eigler <fche@redhat.com>
Mon, 13 May 2024 15:07:32 +0000 (11:07 -0400)
committerFrank Ch. Eigler <fche@redhat.com>
Mon, 13 May 2024 15:07:32 +0000 (11:07 -0400)
Don't block on stdin when /etc/debuginfod/*.certpath expands to nothing.

Signed-off-by: Andreas Schwab <schwab@suse.de>
config/profile.sh.in

index 911c7a4347deaf6bbf61e54183399efb9f8155d1..5e86f43366c057d1b7f0b0b0ee390407f83d25c7 100644 (file)
@@ -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