[git commit] telnet: provide feedback after successful connect
Denys Vlasenko
vda.linux at googlemail.com
Sun Jan 6 18:20:05 UTC 2019
commit: https://git.busybox.net/busybox/commit/?id=3f4fac577a83146ac69bf617a29cf192099cded0
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master
The real telnet provides some feedback:
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
We should do this to, because people are sitting there and think
a firewall is dropping packets.
function old new delta
telnet_main 1270 1279 +9
Signed-off-by: Danijel Tasov <m at rbfh.de>
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
networking/telnet.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/networking/telnet.c b/networking/telnet.c
index 6b4accd33..94c7512fc 100644
--- a/networking/telnet.c
+++ b/networking/telnet.c
@@ -639,6 +639,7 @@ int telnet_main(int argc UNUSED_PARAM, char **argv)
bb_show_usage();
xmove_fd(create_and_connect_stream_or_die(host, port), netfd);
+ printf("Connected to %s\n", host);
setsockopt_keepalive(netfd);
More information about the busybox-cvs
mailing list