diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 1996-07-16 00:33:19 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 1996-07-16 00:33:19 +0000 |
commit | e66e7030c0836c7244623a6e4caf5ee6ea7c92a3 (patch) | |
tree | 40bcb1dc4c2f9535c27023cde37dd3fb7640f4cf /security/ssh/files/patch-ac | |
parent | 34ca0d5d86e2f4558c0e8cf1600e782a276163d7 (diff) |
Notes
Diffstat (limited to 'security/ssh/files/patch-ac')
-rw-r--r-- | security/ssh/files/patch-ac | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/security/ssh/files/patch-ac b/security/ssh/files/patch-ac deleted file mode 100644 index 7701a515af29..000000000000 --- a/security/ssh/files/patch-ac +++ /dev/null @@ -1,24 +0,0 @@ -*** login.c.bak Thu Jun 6 15:39:34 1996 ---- login.c Mon Jun 17 19:56:43 1996 -*************** -*** 236,241 **** ---- 236,254 ---- - strncpy(u.ut_user, user, sizeof(u.ut_user)); - #endif /* HAVE_NAME_IN_UTMP */ - #ifdef HAVE_HOST_IN_UTMP -+ #ifdef __FreeBSD__ -+ if (strlen(host) > UT_HOSTSIZE) { -+ struct hostent *hp = gethostbyname(host); -+ -+ if (hp != NULL) { -+ struct in_addr in; -+ -+ memmove(&in, hp->h_addr, sizeof(in)); -+ host = inet_ntoa(in); -+ } else -+ host = "invalid hostname"; -+ } -+ #endif - strncpy(u.ut_host, host, sizeof(u.ut_host)); - #endif /* HAVE_HOST_IN_UTMP */ - #ifdef HAVE_ADDR_IN_UTMP |