summaryrefslogtreecommitdiff
path: root/usr.bin/ftp
diff options
context:
space:
mode:
authorMartynas Venckus <martynas@cvs.openbsd.org>2009-04-27 23:20:49 +0000
committerMartynas Venckus <martynas@cvs.openbsd.org>2009-04-27 23:20:49 +0000
commitd10952ac4ae1c4c74b109a1e4b5675733619cbaa (patch)
treefeb6c7b172140e0d4d3c0688aa735de603811f66 /usr.bin/ftp
parent65d32803da3084dd8082d8443d811f84527d6b1e (diff)
in silent mode, shut up connect to address warning since it spams
install media if, e.g. ipv6 is not present discussed with theo, sthen@, millert@, todd@
Diffstat (limited to 'usr.bin/ftp')
-rw-r--r--usr.bin/ftp/ftp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ftp/ftp.c b/usr.bin/ftp/ftp.c
index 4842050c920..058e4c3a9c3 100644
--- a/usr.bin/ftp/ftp.c
+++ b/usr.bin/ftp/ftp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ftp.c,v 1.77 2009/04/27 22:51:51 martynas Exp $ */
+/* $OpenBSD: ftp.c,v 1.78 2009/04/27 23:20:48 martynas Exp $ */
/* $NetBSD: ftp.c,v 1.27 1997/08/18 10:20:23 lukem Exp $ */
/*
@@ -189,7 +189,7 @@ hookup(char *host, char *port)
}
if (error) {
/* this "if" clause is to prevent print warning twice */
- if (res->ai_next) {
+ if (verbose && res->ai_next) {
if (getnameinfo(res->ai_addr, res->ai_addrlen,
hbuf, sizeof(hbuf), NULL, 0,
NI_NUMERICHOST) != 0)