]> arthur.barton.de Git - netatalk.git/commitdiff
MFH: 1.9
authorjmarcus <jmarcus>
Mon, 25 Nov 2002 01:37:21 +0000 (01:37 +0000)
committerjmarcus <jmarcus>
Mon, 25 Nov 2002 01:37:21 +0000 (01:37 +0000)
Check to see that STDOUT is a tty instead of STDIN.

bin/pap/pap.c

index 456eff37b398a8f18baf051f34b71acc8261f9e7..3f9d442e7288edf8c4f18be1f40006a25e13f4d2 100644 (file)
@@ -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 );
     }