Adam Wolk [adam.w...@tintagel.pl] wrote:
>
> I would like to just drop that part of code. Any OK's, comments?
> 

Please do. It's utterly useless. ok chris@

> Index: commands.c
> ===================================================================
> RCS file: /cvs/src/usr.bin/telnet/commands.c,v
> retrieving revision 1.83
> diff -u -p -r1.83 commands.c
> --- commands.c        16 Mar 2016 15:41:11 -0000      1.83
> +++ commands.c        3 May 2016 00:24:51 -0000
> @@ -1445,14 +1445,6 @@ env_init(void)
>  
>               gethostname(hbuf, sizeof hbuf);
>  
> -             /* If this is not the full name, try to get it via DNS */
> -             if (strchr(hbuf, '.') == 0) {
> -                     struct hostent *he = gethostbyname(hbuf);
> -                     if (he != 0)
> -                             strncpy(hbuf, he->h_name, sizeof hbuf-1);
> -                     hbuf[sizeof hbuf-1] = '\0';
> -             }
> -
>               if (asprintf (&cp, "%s%s", hbuf, cp2) == -1)
>                       err(1, "asprintf");
>  

Reply via email to