summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2009-04-30 01:03:28 +0000
committerderaadt <deraadt@openbsd.org>2009-04-30 01:03:28 +0000
commit69f1697c3e91f931aa7bfb1e90a775efc1e2a89d (patch)
treedfe3cf110712f85f7c7fb314c805eb18cf015a7a
parentDo not allow the root password to be empty; ok krw after he told me (diff)
downloadwireguard-openbsd-69f1697c3e91f931aa7bfb1e90a775efc1e2a89d.tar.xz
wireguard-openbsd-69f1697c3e91f931aa7bfb1e90a775efc1e2a89d.zip
Allow the user's password to not be set, but in that case do not leave it
open, but * it out, since that is obviously what the administrator wants ok krw
-rw-r--r--distrib/miniroot/install.sub3
1 files changed, 2 insertions, 1 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub
index d49cf296871..6e35a4e783d 100644
--- a/distrib/miniroot/install.sub
+++ b/distrib/miniroot/install.sub
@@ -1,4 +1,4 @@
-# $OpenBSD: install.sub,v 1.501 2009/04/30 01:01:56 deraadt Exp $
+# $OpenBSD: install.sub,v 1.502 2009/04/30 01:03:28 deraadt Exp $
# $NetBSD: install.sub,v 1.5.2.8 1996/09/02 23:25:02 pk Exp $
#
# Copyright (c) 1997-2009 Todd Miller, Theo de Raadt, Ken Westerback
@@ -321,6 +321,7 @@ user_setup() {
_n=$resp
askpassword $_u
+ _encr="*"
[[ -n "$_password" ]] && _encr=`/mnt/usr/bin/encrypt -b 8 -- "$_password"`
echo "${_u}:${_encr}:1000:10::0:0:${_n}:/home/${_u}:/bin/ksh" \
>> /mnt/etc/master.passwd