From 49f5a4d454099f95d1953af381f76bff0ea7e21a Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Sun, 20 Mar 2005 15:00:25 +0000 Subject: [PATCH] Conf_Test(): check if stdin (and not stdout...) is connected to a terminal. --- src/ngircd/conf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ngircd/conf.c b/src/ngircd/conf.c index 412402fc..255e1943 100644 --- a/src/ngircd/conf.c +++ b/src/ngircd/conf.c @@ -14,7 +14,7 @@ #include "portab.h" -static char UNUSED id[] = "$Id: conf.c,v 1.73 2005/03/20 13:54:06 fw Exp $"; +static char UNUSED id[] = "$Id: conf.c,v 1.74 2005/03/20 15:00:25 fw Exp $"; #include "imp.h" #include @@ -106,7 +106,7 @@ Conf_Test( void ) Validate_Config( true ); /* If stdin is a valid tty wait for a key: */ - if( isatty( fileno( stdout ))) + if( isatty( fileno( stdin ))) { puts( "OK, press enter to see a dump of your service configuration ..." ); getchar( );