summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2001-10-14 02:35:57 +0000
committermillert <millert@openbsd.org>2001-10-14 02:35:57 +0000
commitd8dbd12197e34919e9b4514fb446c6062ab2ce43 (patch)
tree4da5f8f211b4a8871c046d52196e9784ee5cc361
parentAdd some missing files; based on patch from David Krause (diff)
downloadwireguard-openbsd-d8dbd12197e34919e9b4514fb446c6062ab2ce43.tar.xz
wireguard-openbsd-d8dbd12197e34919e9b4514fb446c6062ab2ce43.zip
Use double quotes around the password variable--should close PR 2114
-rw-r--r--distrib/miniroot/install.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/distrib/miniroot/install.sh b/distrib/miniroot/install.sh
index c3aafef1a5e..47da136a25f 100644
--- a/distrib/miniroot/install.sh
+++ b/distrib/miniroot/install.sh
@@ -1,5 +1,5 @@
#!/bin/sh
-# $OpenBSD: install.sh,v 1.78 2001/06/23 19:44:45 deraadt Exp $
+# $OpenBSD: install.sh,v 1.79 2001/10/14 02:35:57 millert Exp $
# $NetBSD: install.sh,v 1.5.2.8 1996/08/27 18:15:05 gwr Exp $
#
# Copyright (c) 1997,1998 Todd Miller, Theo de Raadt
@@ -346,7 +346,7 @@ while [ "X${resp}" = X"" ]; do
getresp -n "${_password}"
stty echo
echo
- _password=$resp
+ _password="$resp"
echo -n "Password (again): "
stty -echo
@@ -408,7 +408,7 @@ cd /
remount_fs /tmp/fstab.shadow
md_installboot ${ROOTDISK}
-_encr=`echo ${_password} | /mnt/usr/bin/encrypt -b 7`
+_encr=`echo "${_password}" | /mnt/usr/bin/encrypt -b 7`
echo "1,s@^root::@root:${_encr}:@
w
q" | ed /mnt/etc/master.passwd 2> /dev/null