diff options
author | Dirk Meyer <dinoex@FreeBSD.org> | 2002-07-15 20:08:01 +0000 |
---|---|---|
committer | Dirk Meyer <dinoex@FreeBSD.org> | 2002-07-15 20:08:01 +0000 |
commit | 1c0df50961667477eb53e7c28eb421ea24626b19 (patch) | |
tree | 376cf39959016d60e503ee3f41490376c02ff52c /security/hpn-ssh/files/patch-loginrec.c | |
parent | add gerbv 0.0.9 (diff) |
- Fix Problem with HAVE_HOST_IN_UTMP
- update monitor.c
PR: 40576
Submitted by: lxv@a-send-pr.sink.omut.org
Notes
Notes:
svn path=/head/; revision=63028
Diffstat (limited to 'security/hpn-ssh/files/patch-loginrec.c')
-rw-r--r-- | security/hpn-ssh/files/patch-loginrec.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/security/hpn-ssh/files/patch-loginrec.c b/security/hpn-ssh/files/patch-loginrec.c new file mode 100644 index 000000000000..46247c11d571 --- /dev/null +++ b/security/hpn-ssh/files/patch-loginrec.c @@ -0,0 +1,12 @@ +--- loginrec.c.orig Tue Apr 23 15:09:19 2002 ++++ loginrec.c Mon Jul 15 21:29:20 2002 +@@ -654,7 +655,8 @@ + /* 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)); ++ realhostname_sa(ut->ut_host, sizeof ut->ut_host, ++ &li->hostaddr.sa, li->hostaddr.sa.sa_len); + # endif + # ifdef HAVE_ADDR_IN_UTMP + /* this is just a 32-bit IP address */ |