summaryrefslogtreecommitdiffstats
path: root/readpass.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2005-05-26 12:07:47 +1000
committerDamien Miller <djm@mindrot.org>2005-05-26 12:07:47 +1000
commitd2ebd450f035e2bc549d778389313441a433b173 (patch)
treeb9776d67660f850269a8b979df1c98cea6c805f0 /readpass.c
parent41bfc29ea5416ea0a389635291bcf388d4bdc225 (diff)
- markus@cvs.openbsd.org 2005/05/02 21:13:22
[readpass.c] missing {}
Diffstat (limited to 'readpass.c')
-rw-r--r--readpass.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/readpass.c b/readpass.c
index a193d036..7914799a 100644
--- a/readpass.c
+++ b/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 "xmalloc.h"
#include "misc.h"
@@ -106,9 +106,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);