diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2015-10-28 13:33:43 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2015-10-28 13:33:43 +0000 |
commit | cc66d56b77ba9b8012435fede8ef8b6286393ded (patch) | |
tree | 3beb89a3f9a43772342d420e18893b8ad7ce624c /sys/arch/sparc64 | |
parent | 158253f776e6a96aae78798b3ef27bba424bd992 (diff) |
Support backspace in softraid boot passphrase prompt.
From uwe@
Diffstat (limited to 'sys/arch/sparc64')
-rw-r--r-- | sys/arch/sparc64/stand/ofwboot/softraid.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/sparc64/stand/ofwboot/softraid.c b/sys/arch/sparc64/stand/ofwboot/softraid.c index 1dadfdba2a6..34ab1827c51 100644 --- a/sys/arch/sparc64/stand/ofwboot/softraid.c +++ b/sys/arch/sparc64/stand/ofwboot/softraid.c @@ -1,4 +1,4 @@ -/* $OpenBSD: softraid.c,v 1.3 2015/07/23 16:35:34 krw Exp $ */ +/* $OpenBSD: softraid.c,v 1.4 2015/10/28 13:33:42 jsing Exp $ */ /* * Copyright (c) 2012 Joel Sing <jsing@openbsd.org> @@ -572,6 +572,10 @@ sr_crypto_decrypt_keys(struct sr_boot_volume *bv) c = getchar(); if (c == '\r' || c == '\n') break; + else if (c == '\b') { + i = i > 0 ? i - 2 : -1; + continue; + } passphrase[i] = (c & 0xff); } passphrase[i] = 0; |