[PATCH] telnet: provide feedback after successful connect

Denys Vlasenko vda.linux at googlemail.com
Sun Jan 6 18:20:57 UTC 2019


Applied, thanks!

On Thu, Dec 20, 2018 at 11:28 AM Danijel Tasov <busybox at ml.rbfh.de> wrote:
>
> From: Danijel Tasov <m at rbfh.de>
>
> 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.
>
> Signed-off-by: Danijel Tasov <m at rbfh.de>
> ---
>  networking/telnet.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/networking/telnet.c b/networking/telnet.c
> index 1e6be85..1010a7b 100644
> --- a/networking/telnet.c
> +++ b/networking/telnet.c
> @@ -649,6 +649,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);
>
> --
> 2.1.4
>
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox


More information about the busybox mailing list