From d472c43c7916e318407e028d54a6087f04508dcc Mon Sep 17 00:00:00 2001 From: Alexander Paetzelt Date: Wed, 15 Jul 2020 09:35:47 +0200 Subject: [PATCH] Fix quoting of variable --- initrd/bin/seal-hotpkey | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/initrd/bin/seal-hotpkey b/initrd/bin/seal-hotpkey index 8dc37bb2..3d116ad2 100755 --- a/initrd/bin/seal-hotpkey +++ b/initrd/bin/seal-hotpkey @@ -80,12 +80,12 @@ echo -e "" read -s -p "Enter your $HOTPKEY_BRANDING Admin PIN: " admin_pin echo -e "\n" -hotp_initialize "$admin_pin" $HOTP_SECRET $counter_value $HOTPKEY_BRANDING +hotp_initialize "$admin_pin" $HOTP_SECRET $counter_value "$HOTPKEY_BRANDING" if [ $? -ne 0 ]; then echo -e "\n" read -s -p "Error setting HOTP secret, re-enter Admin PIN and try again: " admin_pin echo -e "\n" - if ! hotp_initialize "$admin_pin" $HOTP_SECRET $counter_value $HOTPKEY_BRANDING ; then + if ! hotp_initialize "$admin_pin" $HOTP_SECRET $counter_value "$HOTPKEY_BRANDING" ; then # don't leak key on failure shred -n 10 -z -u "$HOTP_SECRET" 2> /dev/null die "Setting HOTP secret failed"