diff options
author | Marco Pfatschbacher <mpf@cvs.openbsd.org> | 2009-10-08 15:56:47 +0000 |
---|---|---|
committer | Marco Pfatschbacher <mpf@cvs.openbsd.org> | 2009-10-08 15:56:47 +0000 |
commit | 3ceb92d1cb14ed2b641bc670d1b097d7d87c15f2 (patch) | |
tree | f62793268e56aee4486eb8bfe5573b3afa3d7450 /usr.bin | |
parent | d0d5b5a45732fd70b10368631450fcebf5f86f18 (diff) |
Do not write "Connection to ... succeeded" messages to stdout.
OK gilles, rainer, millert, deraadt.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/nc/netcat.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/nc/netcat.c b/usr.bin/nc/netcat.c index 6700f89cfe5..17ffc8921f7 100644 --- a/usr.bin/nc/netcat.c +++ b/usr.bin/nc/netcat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: netcat.c,v 1.93 2009/06/05 00:18:10 claudio Exp $ */ +/* $OpenBSD: netcat.c,v 1.94 2009/10/08 15:56:46 mpf Exp $ */ /* * Copyright (c) 2001 Eric Jackson <ericj@monkey.org> * @@ -403,8 +403,10 @@ main(int argc, char *argv[]) uflag ? "udp" : "tcp"); } - printf("Connection to %s %s port [%s/%s] succeeded!\n", - host, portlist[i], uflag ? "udp" : "tcp", + fprintf(stderr, + "Connection to %s %s port [%s/%s] " + "succeeded!\n", host, portlist[i], + uflag ? "udp" : "tcp", sv ? sv->s_name : "*"); } if (!zflag) |