aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2016-02-20 19:58:00 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2016-02-20 19:59:06 +0100
commite0dabda85effc1d54dc9cd2ed93c4e0c4f7ebb2a (patch)
tree1958944b39eca4b791c92f350e5092058192714e
parentChangeLog update for the git tag. (diff)
downloadbetter-initramfs-e0dabda85effc1d54dc9cd2ed93c4e0c4f7ebb2a.tar.xz
better-initramfs-e0dabda85effc1d54dc9cd2ed93c4e0c4f7ebb2a.zip
unlock-luks: do not treat \ char specially
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rwxr-xr-xsourceroot/bin/unlock-luks4
1 files changed, 2 insertions, 2 deletions
diff --git a/sourceroot/bin/unlock-luks b/sourceroot/bin/unlock-luks
index bcb2ce3..2021eea 100755
--- a/sourceroot/bin/unlock-luks
+++ b/sourceroot/bin/unlock-luks
@@ -40,7 +40,7 @@ fi
printf 'Enter password: '
stty -echo
-read luks_password
+read -r luks_password
stty echo
-printf "${luks_password}" >/luks_passfifo
+printf "%s" "${luks_password}" >/luks_passfifo
printf '\n'