From owner-svn-src-all@freebsd.org Wed Feb 21 20:17:10 2018 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EDA4EF2699E; Wed, 21 Feb 2018 20:17:09 +0000 (UTC) (envelope-from kevans@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A72B8708A4; Wed, 21 Feb 2018 20:17:08 +0000 (UTC) (envelope-from kevans@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A19B71D3CB; Wed, 21 Feb 2018 20:17:08 +0000 (UTC) (envelope-from kevans@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w1LKH8FK078328; Wed, 21 Feb 2018 20:17:08 GMT (envelope-from kevans@FreeBSD.org) Received: (from kevans@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w1LKH8k8078327; Wed, 21 Feb 2018 20:17:08 GMT (envelope-from kevans@FreeBSD.org) Message-Id: <201802212017.w1LKH8k8078327@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: kevans set sender to kevans@FreeBSD.org using -f From: Kyle Evans Date: Wed, 21 Feb 2018 20:17:08 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r329748 - head/stand/lua X-SVN-Group: head X-SVN-Commit-Author: kevans X-SVN-Commit-Paths: head/stand/lua X-SVN-Commit-Revision: 329748 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Feb 2018 20:17:10 -0000 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 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