summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/readpass.c
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>2005-05-02 21:13:22 +0000
committermarkus <markus@openbsd.org>2005-05-02 21:13:22 +0000
commit84497b70e5a4d2d75faed25095f9ca40b01de494 (patch)
treec7dc88fbe6b8ffd9800193b990d6ed97ac99c87f /usr.bin/ssh/readpass.c
parentAvoid infite loop. (diff)
downloadwireguard-openbsd-84497b70e5a4d2d75faed25095f9ca40b01de494.tar.xz
wireguard-openbsd-84497b70e5a4d2d75faed25095f9ca40b01de494.zip
missing {}
Diffstat (limited to 'usr.bin/ssh/readpass.c')
-rw-r--r--usr.bin/ssh/readpass.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/ssh/readpass.c b/usr.bin/ssh/readpass.c
index 45a84bcabfe..1743c56d1d4 100644
--- a/usr.bin/ssh/readpass.c
+++ b/usr.bin/ssh/readpass.c
@@ -23,7 +23,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: readpass.c,v 1.32 2005/04/23 23:43:47 dtucker Exp $");
+RCSID("$OpenBSD: readpass.c,v 1.33 2005/05/02 21:13:22 markus Exp $");
#include <readpassphrase.h>
@@ -108,9 +108,10 @@ read_passphrase(const char *prompt, int flags)
if (flags & RP_USE_ASKPASS)
use_askpass = 1;
else if (flags & RP_ALLOW_STDIN) {
- if (!isatty(STDIN_FILENO))
+ if (!isatty(STDIN_FILENO)) {
debug("read_passphrase: stdin is not a tty");
use_askpass = 1;
+ }
} else {
rppflags |= RPP_REQUIRE_TTY;
ttyfd = open(_PATH_TTY, O_RDWR);