Switch to OpenSSH-4.1p1.
[dragonfly.git] / secure / usr.sbin / sshd / loginrec.c.patch
1 $DragonFly: src/secure/usr.sbin/sshd/Attic/loginrec.c.patch,v 1.2 2005/07/11 22:49:46 corecode Exp $
2 --- loginrec.c.orig     2005-07-11 11:14:15.000000000 +0200
3 +++ loginrec.c  2005-07-11 11:13:37.000000000 +0200
4 @@ -670,8 +670,8 @@
5         strncpy(ut->ut_name, li->username,
6             MIN_SIZEOF(ut->ut_name, li->username));
7  # ifdef HAVE_HOST_IN_UTMP
8 -       strncpy(ut->ut_host, li->hostname,
9 -           MIN_SIZEOF(ut->ut_host, li->hostname));
10 +       realhostname_sa(ut->ut_host, sizeof ut->ut_host,
11 +           &li->hostaddr.sa, li->hostaddr.sa.sa_len);
12  # endif
13  # ifdef HAVE_ADDR_IN_UTMP
14         /* this is just a 32-bit IP address */