]> arthur.barton.de Git - ngircd.git/commitdiff
Conf_Test(): check if stdin (and not stdout...) is connected to a terminal.
authorFlorian Westphal <fw@strlen.de>
Sun, 20 Mar 2005 15:00:25 +0000 (15:00 +0000)
committerFlorian Westphal <fw@strlen.de>
Sun, 20 Mar 2005 15:00:25 +0000 (15:00 +0000)
src/ngircd/conf.c

index 412402fc727bebeb2102113119c8db284aabbee4..255e194328f23f4be707bad775ef1ab4c2557ea4 100644 (file)
@@ -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( );