diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-04-29 22:45:21 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-04-29 22:45:21 +0000 |
commit | e931c9a66ee4198928bc60a583720808d84a0b94 (patch) | |
tree | 0ec643e38794bdedf1d5ea1e046afbe3a614bacc /distrib/miniroot/install.sub | |
parent | 3ec69ee240eca56116440c95e111d215605a8f30 (diff) |
only encrypt passwords if they are set
Diffstat (limited to 'distrib/miniroot/install.sub')
-rw-r--r-- | distrib/miniroot/install.sub | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub index 48efa16617d..1c06b2c09ac 100644 --- a/distrib/miniroot/install.sub +++ b/distrib/miniroot/install.sub @@ -1,4 +1,4 @@ -# $OpenBSD: install.sub,v 1.498 2009/04/29 22:44:42 deraadt Exp $ +# $OpenBSD: install.sub,v 1.499 2009/04/29 22:45:20 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 @@ -323,7 +323,7 @@ user_setup() { askpassword $_u [[ -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 + >> /mnt/etc/master.passwd mkdir -p /mnt/home/$_u (cd /mnt/etc/skel; cp -pR . /mnt/home/$_u) |