diff options
author | 2005-05-02 21:13:22 +0000 | |
---|---|---|
committer | 2005-05-02 21:13:22 +0000 | |
commit | 84497b70e5a4d2d75faed25095f9ca40b01de494 (patch) | |
tree | c7dc88fbe6b8ffd9800193b990d6ed97ac99c87f /usr.bin/ssh/readpass.c | |
parent | Avoid infite loop. (diff) | |
download | wireguard-openbsd-84497b70e5a4d2d75faed25095f9ca40b01de494.tar.xz wireguard-openbsd-84497b70e5a4d2d75faed25095f9ca40b01de494.zip |
missing {}
Diffstat (limited to 'usr.bin/ssh/readpass.c')
-rw-r--r-- | usr.bin/ssh/readpass.c | 5 |
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); |