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 <kalle.carlbark+freebsd@kcbark.net>
This commit is contained in:
parent
1f6c6d86e0
commit
a5e2e5c724
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=329748
@ -37,7 +37,7 @@ function password.read()
|
|||||||
local str = ""
|
local str = ""
|
||||||
local n = 0
|
local n = 0
|
||||||
|
|
||||||
repeat
|
while true do
|
||||||
ch = io.getchar()
|
ch = io.getchar()
|
||||||
if ch == core.KEY_ENTER then
|
if ch == core.KEY_ENTER then
|
||||||
break
|
break
|
||||||
@ -55,7 +55,7 @@ function password.read()
|
|||||||
str = str .. string.char(ch)
|
str = str .. string.char(ch)
|
||||||
n = n + 1
|
n = n + 1
|
||||||
end
|
end
|
||||||
until n == 16
|
end
|
||||||
return str
|
return str
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user