diff options
author | Pierre-Yves Ritschard <pyr@cvs.openbsd.org> | 2008-05-24 00:42:36 +0000 |
---|---|---|
committer | Pierre-Yves Ritschard <pyr@cvs.openbsd.org> | 2008-05-24 00:42:36 +0000 |
commit | a17d41bfba66ed9e57f41a10e4891c6c0ab0815d (patch) | |
tree | c01c81ddf982c82f856c297bf23a7219d686be14 | |
parent | 46997233fa8dff706d228597091d4af7e813c9ff (diff) |
Enclose an informational message in a verbose check.
From Alexander Hall <alexander@beard.se>
ok henning@, ``I suppose so'' deraadt@
-rw-r--r-- | usr.bin/ftp/ftp.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/ftp/ftp.c b/usr.bin/ftp/ftp.c index faca5d16581..3ad6cd3a69d 100644 --- a/usr.bin/ftp/ftp.c +++ b/usr.bin/ftp/ftp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ftp.c,v 1.69 2008/04/12 21:20:58 ray Exp $ */ +/* $OpenBSD: ftp.c,v 1.70 2008/05/24 00:42:35 pyr Exp $ */ /* $NetBSD: ftp.c,v 1.27 1997/08/18 10:20:23 lukem Exp $ */ /* @@ -60,7 +60,7 @@ */ #if !defined(lint) && !defined(SMALL) -static const char rcsid[] = "$OpenBSD: ftp.c,v 1.69 2008/04/12 21:20:58 ray Exp $"; +static const char rcsid[] = "$OpenBSD: ftp.c,v 1.70 2008/05/24 00:42:35 pyr Exp $"; #endif /* not lint and not SMALL */ #include <sys/types.h> @@ -179,7 +179,8 @@ hookup(char *host, char *port) if (getnameinfo(res->ai_addr, res->ai_addrlen, hbuf, sizeof(hbuf), NULL, 0, NI_NUMERICHOST) != 0) strlcpy(hbuf, "unknown", sizeof(hbuf)); - fprintf(ttyout, "Trying %s...\n", hbuf); + if (verbose) + fprintf(ttyout, "Trying %s...\n", hbuf); } s = socket(res->ai_family, res->ai_socktype, res->ai_protocol); if (s < 0) { |