diff options
author | 1999-12-11 22:12:00 +0000 | |
---|---|---|
committer | 1999-12-11 22:12:00 +0000 | |
commit | 6bf24be4c60f1aa79f8d458e94f1c44ac38ebb09 (patch) | |
tree | e4d53d19e78f80c83b82dbef3461dae6af44805d | |
parent | Remove old IDE driver (diff) | |
download | wireguard-openbsd-6bf24be4c60f1aa79f8d458e94f1c44ac38ebb09.tar.xz wireguard-openbsd-6bf24be4c60f1aa79f8d458e94f1c44ac38ebb09.zip |
Add a perror() in reporting failure to connect.
-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; |