summaryrefslogtreecommitdiff
path: root/security/hpn-ssh/files/patch-loginrec.c
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2002-07-24 20:47:22 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2002-07-24 20:47:22 +0000
commit9d5e8cafdc26e190fe2f8f26a5287ef644ab5931 (patch)
tree10e3949be192101df666c53c042f3de8eecbe0bd /security/hpn-ssh/files/patch-loginrec.c
parentUpdate to 2.0.2. (diff)
- add pam_cleanup from CURRENT
- Fix build problems < 4.0 PR: 40576
Notes
Notes: svn path=/head/; revision=63497
Diffstat (limited to 'security/hpn-ssh/files/patch-loginrec.c')
-rw-r--r--security/hpn-ssh/files/patch-loginrec.c17
1 files changed, 14 insertions, 3 deletions
diff --git a/security/hpn-ssh/files/patch-loginrec.c b/security/hpn-ssh/files/patch-loginrec.c
index 46247c11d571..9327d9217916 100644
--- a/security/hpn-ssh/files/patch-loginrec.c
+++ b/security/hpn-ssh/files/patch-loginrec.c
@@ -1,12 +1,23 @@
--- loginrec.c.orig Tue Apr 23 15:09:19 2002
-+++ loginrec.c Mon Jul 15 21:29:20 2002
-@@ -654,7 +655,8 @@
++++ loginrec.c Wed Jul 24 08:13:44 2002
+@@ -171,6 +171,7 @@
+
+ #ifdef HAVE_LIBUTIL_H
+ # include <libutil.h>
++# include <osreldate.h>
+ #endif
+
+ /**
+@@ -654,7 +655,12 @@
/* Use strncpy because we don't necessarily want null termination */
strncpy(ut->ut_name, li->username, MIN_SIZEOF(ut->ut_name, li->username));
# ifdef HAVE_HOST_IN_UTMP
-- strncpy(ut->ut_host, li->hostname, MIN_SIZEOF(ut->ut_host, li->hostname));
++# if defined(__FreeBSD__) && __FreeBSD_version <= 400000
+ strncpy(ut->ut_host, li->hostname, MIN_SIZEOF(ut->ut_host, li->hostname));
++# else
+ realhostname_sa(ut->ut_host, sizeof ut->ut_host,
+ &li->hostaddr.sa, li->hostaddr.sa.sa_len);
++# endif
# endif
# ifdef HAVE_ADDR_IN_UTMP
/* this is just a 32-bit IP address */