about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2005-03-20 15:00:25 +0000
committerFlorian Westphal <fw@strlen.de>2005-03-20 15:00:25 +0000
commit49f5a4d454099f95d1953af381f76bff0ea7e21a (patch)
tree2294b2bfa9080365a4132c904bb423986f193f21 /src
parent326607eea1189ede39eaebeda1661b299ef564cc (diff)
downloadngircd-49f5a4d454099f95d1953af381f76bff0ea7e21a.tar.gz
ngircd-49f5a4d454099f95d1953af381f76bff0ea7e21a.zip
Conf_Test(): check if stdin (and not stdout...) is connected to a terminal.
Diffstat (limited to 'src')
-rw-r--r--src/ngircd/conf.c4
1 files 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 <assert.h>
@@ -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( );