Date: Wed, 21 Feb 2018 20:17:08 +0000 (UTC) From: Kyle Evans <kevans@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r329748 - head/stand/lua Message-ID: <201802212017.w1LKH8k8078327@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kevans Date: Wed Feb 21 20:17:08 2018 New Revision: 329748 URL: https://svnweb.freebsd.org/changeset/base/329748 Log: 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> Modified: head/stand/lua/password.lua Modified: head/stand/lua/password.lua ============================================================================== --- head/stand/lua/password.lua Wed Feb 21 19:56:34 2018 (r329747) +++ head/stand/lua/password.lua Wed Feb 21 20:17:08 2018 (r329748) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802212017.w1LKH8k8078327>