From a5e2e5c7248675cfe3338b60dff34049f3954f7f Mon Sep 17 00:00:00 2001 From: Kyle Evans Date: Wed, 21 Feb 2018 20:17:08 +0000 Subject: [PATCH] lualoader: Drop password length restrictions This seems to have been arbitrary; bootlock_password and password don't seem to have any documented length restrictions, and loader(8) probably shouldn't care about whatever GELI passphrase length restrictions might exist. Reported by: Kalle Carlbark --- stand/lua/password.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stand/lua/password.lua b/stand/lua/password.lua index b621c4dd7493..92dce5e39b37 100644 --- a/stand/lua/password.lua +++ b/stand/lua/password.lua @@ -37,7 +37,7 @@ function password.read() local str = "" local n = 0 - repeat + while true do ch = io.getchar() if ch == core.KEY_ENTER then break @@ -55,7 +55,7 @@ function password.read() str = str .. string.char(ch) n = n + 1 end - until n == 16 + end return str end