Check to see that STDOUT is a tty instead of STDIN.
/*
- * $Id: pap.c,v 1.8 2002-05-07 04:55:26 morgana Exp $
+ * $Id: pap.c,v 1.8.2.1 2002-11-25 01:37:21 jmarcus Exp $
*
* Copyright (c) 1990,1994 Regents of The University of Michigan.
* All Rights Reserved. See COPYRIGHT.
exit( 1 );
}
- if ( isatty( 0 )) {
+ if ( isatty( 1 )) {
printf( "Trying %u.%d:%d ...\n", ntohs( nn.nn_sat.sat_addr.s_net ),
nn.nn_sat.sat_addr.s_node, nn.nn_sat.sat_port );
}