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 <[email protected]> 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 _______________________________________________ [email protected] mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "[email protected]"
