diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-12-19 01:52:10 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-12-19 01:52:10 +0000 |
commit | af8e175e346d2189093a19b304242a43cb0ee4a8 (patch) | |
tree | fe570bf229cd488c748cb4fcd01df1e8b7c41ed6 | |
parent | 9215629f415152fecfdcc0d3d441167cccbd521b (diff) |
only do "Trying ..." if verbose
-rw-r--r-- | usr.bin/ftp/fetch.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.bin/ftp/fetch.c b/usr.bin/ftp/fetch.c index e0042aa68f6..e1ae1cd902b 100644 --- a/usr.bin/ftp/fetch.c +++ b/usr.bin/ftp/fetch.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fetch.c,v 1.40 2002/11/08 03:30:17 fgsch Exp $ */ +/* $OpenBSD: fetch.c,v 1.41 2002/12/19 01:52:09 deraadt Exp $ */ /* $NetBSD: fetch.c,v 1.14 1997/08/18 10:20:20 lukem Exp $ */ /*- @@ -38,7 +38,7 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: fetch.c,v 1.40 2002/11/08 03:30:17 fgsch Exp $"; +static char rcsid[] = "$OpenBSD: fetch.c,v 1.41 2002/12/19 01:52:09 deraadt Exp $"; #endif /* not lint */ /* @@ -310,8 +310,9 @@ url_get(origline, proxyenv, outfile) s = -1; for (res = res0; res; res = res->ai_next) { getnameinfo(res->ai_addr, res->ai_addrlen, pbuf, sizeof(pbuf), - NULL, 0, NI_NUMERICHOST); - fprintf(ttyout, "Trying %s...\n", pbuf); + NULL, 0, NI_NUMERICHOST); + if (verbose) + fprintf(ttyout, "Trying %s...\n", pbuf); s = socket(res->ai_family, res->ai_socktype, res->ai_protocol); if (s == -1) { |