From: jmarcus Date: Mon, 25 Nov 2002 01:37:21 +0000 (+0000) Subject: MFH: 1.9 X-Git-Tag: netatalk-1-6-0rc1~2 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9fce25323b5f5137c0a18a7928777b4d6a0a23e9;hp=81b5f880bdf8802a348fee000bbf20ea6ea8a956;p=netatalk.git MFH: 1.9 Check to see that STDOUT is a tty instead of STDIN. --- diff --git a/bin/pap/pap.c b/bin/pap/pap.c index 456eff37..3f9d442e 100644 --- a/bin/pap/pap.c +++ b/bin/pap/pap.c @@ -1,5 +1,5 @@ /* - * $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. @@ -245,7 +245,7 @@ int main( ac, av ) 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 ); }