From c6eb32a1bebb088434f48e54aa9973a770b76a34 Mon Sep 17 00:00:00 2001 From: djm Date: Thu, 26 May 2005 02:07:47 +0000 Subject: [PATCH] - markus@cvs.openbsd.org 2005/05/02 21:13:22 [readpass.c] missing {} --- ChangeLog | 3 +++ readpass.c | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 361a8174..a6b7cf84 100644 --- a/ChangeLog +++ b/ChangeLog @@ -44,6 +44,9 @@ - moritz@cvs.openbsd.org 2005/04/28 10:17:56 [progressmeter.c ssh-keyscan.c] add snprintf checks. ok djm@ markus@ + - markus@cvs.openbsd.org 2005/05/02 21:13:22 + [readpass.c] + missing {} 20050524 - (djm) [contrib/caldera/openssh.spec contrib/redhat/openssh.spec] 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); -- 2.45.1