sync up with domestic fixes
This commit is contained in:
parent
c241e89a6f
commit
d03349ad69
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: commands.c,v 1.13 1996/02/28 21:03:53 thorpej Exp $ */
|
/* $NetBSD: commands.c,v 1.14 1996/03/24 22:03:48 jtk Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1988, 1990, 1993
|
* Copyright (c) 1988, 1990, 1993
|
||||||
|
@ -37,7 +37,7 @@
|
||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)commands.c 8.4 (Berkeley) 5/30/95";
|
static char sccsid[] = "@(#)commands.c 8.4 (Berkeley) 5/30/95";
|
||||||
#else
|
#else
|
||||||
static char rcsid[] = "$NetBSD: commands.c,v 1.13 1996/02/28 21:03:53 thorpej Exp $";
|
static char rcsid[] = "$NetBSD: commands.c,v 1.14 1996/03/24 22:03:48 jtk Exp $";
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
|
@ -2170,7 +2170,11 @@ tn(argc, argv)
|
||||||
if (temp != INADDR_NONE) {
|
if (temp != INADDR_NONE) {
|
||||||
sin.sin_addr.s_addr = temp;
|
sin.sin_addr.s_addr = temp;
|
||||||
sin.sin_family = AF_INET;
|
sin.sin_family = AF_INET;
|
||||||
(void) strcpy(_hostname, hostp);
|
host = gethostbyaddr((char *)&temp, sizeof(temp), AF_INET);
|
||||||
|
if (host)
|
||||||
|
(void) strcpy(_hostname, host->h_name);
|
||||||
|
else
|
||||||
|
(void) strcpy(_hostname, hostp);
|
||||||
hostname = _hostname;
|
hostname = _hostname;
|
||||||
} else {
|
} else {
|
||||||
host = gethostbyname(hostp);
|
host = gethostbyname(hostp);
|
||||||
|
|
Loading…
Reference in New Issue