ebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1777407357; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=3AIcaqwr0kLYe+PcofJTe5r6r09+h96JVPuRLbclhH4=; b=d/sMzV1pxKmyiJclph0sjuBdYkaibWnqavCAhndJYVp7Zdo2d50BtvVi3oxWxFTqcjho0J ku0x0DCNfc/Sx7P11iqQ4OnFyrjDBpTD25xzHbIYMFGFITwSYQspAl9gs6ewgXnLUqTsA4 SSk9l+s+aYMxdg3oJt2C/IVKlpK775GYNqR4tw+ICWdFHj4GknYx4MuXWWpN/RE+rcsPlE 8tJefpHSd/haa8sKR+NZA7ZTmrSz3xJgGUuD2wVzI9CWTFB5Gp6aMlgljQgquP1Yiubzab 7QR4Bpm0UqCjt1ZVrPVOQpUo1VYVATp/fHgGprGnxmPWumVWXRrP+nU6xHgF+A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4g4sBj2F3Nz181N for ; Tue, 28 Apr 2026 20:15:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 37638 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 28 Apr 2026 20:15:57 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Lars Engels Subject: git: 44d33ead3d04 - stable/15 - bsdinstall: fix root password prompt with backslashes List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lme X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 44d33ead3d04b51881e7fba0cbed8f66f001280a Auto-Submitted: auto-generated Date: Tue, 28 Apr 2026 20:15:57 +0000 Message-Id: <69f1157d.37638.3cde9949@gitrepo.freebsd.org> The branch stable/15 has been updated by lme: URL: https://cgit.FreeBSD.org/src/commit/?id=44d33ead3d04b51881e7fba0cbed8f66f001280a commit 44d33ead3d04b51881e7fba0cbed8f66f001280a Author: Lars Engels AuthorDate: 2026-04-25 14:41:24 +0000 Commit: Lars Engels CommitDate: 2026-04-28 20:15:49 +0000 bsdinstall: fix root password prompt with backslashes Use "read -r" to set the root password in "bsdinstall rootpass" to prevent issues with passwords containing one or more backslash characters. PR: 294781 Discussed with: tuexen, crest Approved by: khorben MFC after: 3 days Event: Wiesbaden Hackathon 202604 (cherry picked from commit 1566386b90d34dea7f30a0e6b511e178bd0d50b8) --- usr.sbin/bsdinstall/scripts/rootpass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/bsdinstall/scripts/rootpass b/usr.sbin/bsdinstall/scripts/rootpass index 9d25569ae946..5d3a44f4b179 100755 --- a/usr.sbin/bsdinstall/scripts/rootpass +++ b/usr.sbin/bsdinstall/scripts/rootpass @@ -103,8 +103,8 @@ $errormsg" \ exec 5>&- [ $res -eq $BSDDIALOG_OK ] || exit 0 - echo -n "$output" | (read password1 - read password2 + echo -n "$output" | (read -r password1 + read -r password2 [ -n "$password1" -o -n "$password2" ] || exit 62 [ "$password1" = "$password2" ] || exit 63 echo "$password1" | chroot $BSDINSTALL_CHROOT \