From 4ae52b037b992967cc8958098456565ea1cd8b2d Mon Sep 17 00:00:00 2001 From: Zrubi Date: Thu, 25 Feb 2016 15:05:06 +0100 Subject: [PATCH] filename sanitization --- qvm-tools/qubes-hcl-report | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qvm-tools/qubes-hcl-report b/qvm-tools/qubes-hcl-report index 047a79d0..e26d9b86 100755 --- a/qvm-tools/qubes-hcl-report +++ b/qvm-tools/qubes-hcl-report @@ -18,7 +18,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -VERSION=2.4 +VERSION=2.5 COPY2VM="dom0" SUPPORT_FILES=0 @@ -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// /_}-${PRODUCT// /_}-$DATE" +FILENAME="Qubes-HCL-${BRAND//+([^[:alnum:]])/_}-${PRODUCT//+([^[:alnum:]])/_}-$DATE" if [[ $XL_VTX ]] then