summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authormartijn <martijn@cvs.openbsd.org>2016-02-15 19:56:12 +0000
committermartijn <martijn@cvs.openbsd.org>2016-02-15 19:56:12 +0000
commit046ff44a8601a5debe7f58a677cbdbc9f0f81880 (patch)
tree7d4d339cae9f65c1993ef72dc905d65254ff8cd6 /usr.bin
parent761251c35fea48cee375127af0fd3bd83e12152c (diff)
Do a carriage return before password prompt.
OK tedu@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/doas/doas.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/doas/doas.c b/usr.bin/doas/doas.c
index c25e96e6229..a0ab4c6e02c 100644
--- a/usr.bin/doas/doas.c
+++ b/usr.bin/doas/doas.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: doas.c,v 1.50 2016/02/07 20:01:58 tedu Exp $ */
+/* $OpenBSD: doas.c,v 1.51 2016/02/15 19:56:11 martijn Exp $ */
/*
* Copyright (c) 2015 Ted Unangst <tedu@openbsd.org>
*
@@ -425,7 +425,7 @@ main(int argc, char **argv, char **envp)
if (gethostname(host, sizeof(host)))
snprintf(host, sizeof(host), "?");
snprintf(cbuf, sizeof(cbuf),
- "doas (%.32s@%.32s) password: ", myname, host);
+ "\rdoas (%.32s@%.32s) password: ", myname, host);
challenge = cbuf;
}
response = readpassphrase(challenge, rbuf, sizeof(rbuf),