Add an installer-fetchpkgs target and other related stuff to reduce the
[dragonfly.git] / secure / usr.sbin / sshd / loginrec.c.patch
1 $DragonFly: src/secure/usr.sbin/sshd/Attic/loginrec.c.patch,v 1.1 2004/07/31 20:05:00 geekgod Exp $
2 --- loginrec.c.orig     2004-07-23 14:26:51.000000000 +0200
3 +++ loginrec.c  2004-07-23 14:20:00.000000000 +0200
4 @@ -652,7 +652,8 @@
5         /* Use strncpy because we don't necessarily want null termination */
6         strncpy(ut->ut_name, li->username, MIN_SIZEOF(ut->ut_name, li->username));
7  # ifdef HAVE_HOST_IN_UTMP
8 -       strncpy(ut->ut_host, li->hostname, MIN_SIZEOF(ut->ut_host, li->hostname));
9 +       realhostname_sa(ut->ut_host, sizeof ut->ut_host,
10 +           &li->hostaddr.sa, li->hostaddr.sa.sa_len);
11  # endif
12  # ifdef HAVE_ADDR_IN_UTMP
13         /* this is just a 32-bit IP address */