diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 1999-12-11 22:12:01 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 1999-12-11 22:12:01 +0000 |
commit | df2712e2b2883d1846ed71cef1f69fa11fa8b20a (patch) | |
tree | 1a26d9f4b98ec618f9cebaa88f9c4fd7ae3fb4da /usr.bin | |
parent | fbc5a5f430ae165dd8f580540709ef9ed7145ee9 (diff) |
Add a perror() in reporting failure to connect.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/telnet/commands.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/telnet/commands.c b/usr.bin/telnet/commands.c index 6433aa4552d..343eb46afe8 100644 --- a/usr.bin/telnet/commands.c +++ b/usr.bin/telnet/commands.c @@ -1,4 +1,4 @@ -/* $OpenBSD: commands.c,v 1.23 1999/12/11 09:08:08 itojun Exp $ */ +/* $OpenBSD: commands.c,v 1.24 1999/12/11 22:12:00 angelos Exp $ */ /* $NetBSD: commands.c,v 1.14 1996/03/24 22:03:48 jtk Exp $ */ /* @@ -2482,6 +2482,7 @@ tn(argc, argv) getnameinfo(res->ai_addr, res->ai_addrlen, hbuf, sizeof(hbuf), NULL, 0, NI_NUMERICHOST); fprintf(stderr, "telnet: connect to address %s: ", hbuf); + perror(""); close(net); net = -1; |