From 7c0f5a4be682866670ee0124c5655e97aa3a2982 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Wed, 18 May 2016 14:21:26 +0200 Subject: [PATCH] qubes-hcl-report: filename sanitization for old bash Bash in dom0 (Fedora 20 based) doesn't properly handle "+(..)" operator. So remove it for now. Fixes QubesOS/qubes-issues#1994 --- qvm-tools/qubes-hcl-report | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qvm-tools/qubes-hcl-report b/qvm-tools/qubes-hcl-report index e26d9b86..031b16e9 100755 --- a/qvm-tools/qubes-hcl-report +++ b/qvm-tools/qubes-hcl-report @@ -103,7 +103,7 @@ XL_VTX=`cat $TEMP_DIR/xl-info |grep xen_caps | grep hvm` XL_VTD=`cat $TEMP_DIR/xl-info |grep virt_caps |grep hvm_directio` PCRS=`find /sys/devices/ -name pcrs` -FILENAME="Qubes-HCL-${BRAND//+([^[:alnum:]])/_}-${PRODUCT//+([^[:alnum:]])/_}-$DATE" +FILENAME="Qubes-HCL-${BRAND//[^[:alnum:]]/_}-${PRODUCT//[^[:alnum:]]/_}-$DATE" if [[ $XL_VTX ]] then