diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1998-03-26 05:17:49 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1998-03-26 05:17:49 +0000 |
commit | 591646e985e332e2ed4b30ac06f6facfa506ef4c (patch) | |
tree | 41b5217df82d0e00f8ed52c67856c7b243a1594b /distrib/miniroot | |
parent | ef8889ea63697540c26e86f55e79650d32b46737 (diff) |
For non-anonymous ftp, ask for the password twice and and make sure
they match. This is because passwords are no longer echo'd so we
want to make sure they are correct before we do any xfers.
Diffstat (limited to 'distrib/miniroot')
-rw-r--r-- | distrib/miniroot/install.sub | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub index ba45364a172..a079cca72f9 100644 --- a/distrib/miniroot/install.sub +++ b/distrib/miniroot/install.sub @@ -1,5 +1,5 @@ #!/bin/sh -# $OpenBSD: install.sub,v 1.60 1998/03/26 03:57:43 deraadt Exp $ +# $OpenBSD: install.sub,v 1.61 1998/03/26 05:17:48 millert Exp $ # $NetBSD: install.sub,v 1.5.2.8 1996/09/02 23:25:02 pk Exp $ # # Copyright (c) 1996 The NetBSD Foundation, Inc. @@ -750,6 +750,16 @@ install_url() { stty echo echo "" _ftp_server_password=$resp + + echo -n "Password (again): " + stty -echo + getresp "${_ftp_server_password}" + stty echo + echo "" + if [ "${_ftp_server_password}" != "${resp}" ]; then + echo "Passwords do not match, try again." + resp="" + fi done else # only used by ftp_list_files() |