diff options
| author | Florian Westphal <fw@strlen.de> | 2005-03-20 15:00:25 +0000 |
|---|---|---|
| committer | Florian Westphal <fw@strlen.de> | 2005-03-20 15:00:25 +0000 |
| commit | 49f5a4d454099f95d1953af381f76bff0ea7e21a (patch) | |
| tree | 2294b2bfa9080365a4132c904bb423986f193f21 | |
| parent | 326607eea1189ede39eaebeda1661b299ef564cc (diff) | |
| download | ngircd-49f5a4d454099f95d1953af381f76bff0ea7e21a.tar.gz ngircd-49f5a4d454099f95d1953af381f76bff0ea7e21a.zip | |
Conf_Test(): check if stdin (and not stdout...) is connected to a terminal.
| -rw-r--r-- | src/ngircd/conf.c | 4 |
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( ); |