commit 49f5a4d454099f95d1953af381f76bff0ea7e21a from: Florian Westphal date: Sun Mar 20 15:00:25 2005 UTC Conf_Test(): check if stdin (and not stdout...) is connected to a terminal. commit - 326607eea1189ede39eaebeda1661b299ef564cc commit + 49f5a4d454099f95d1953af381f76bff0ea7e21a blob - 412402fc727bebeb2102113119c8db284aabbee4 blob + 255e194328f23f4be707bad775ef1ab4c2557ea4 --- src/ngircd/conf.c +++ 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( );