summaryrefslogtreecommitdiff
path: root/system/openssh/fix-utmp.patch
diff options
context:
space:
mode:
Diffstat (limited to 'system/openssh/fix-utmp.patch')
-rw-r--r--system/openssh/fix-utmp.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/system/openssh/fix-utmp.patch b/system/openssh/fix-utmp.patch
new file mode 100644
index 000000000..275e80590
--- /dev/null
+++ b/system/openssh/fix-utmp.patch
@@ -0,0 +1,11 @@
+--- openssh-6.8p1.orig/loginrec.c 2015-03-17 07:49:20.000000000 -0200
++++ openssh-6.8p1/loginrec.c 2015-03-19 10:45:45.780276841 -0200
+@@ -783,7 +783,7 @@
+ if (li->hostaddr.sa.sa_family == AF_INET)
+ utx->ut_addr = li->hostaddr.sa_in.sin_addr.s_addr;
+ # endif
+-# ifdef HAVE_ADDR_V6_IN_UTMP
++# ifdef HAVE_ADDR_V6_IN_UTMPX
+ /* this is just a 128-bit IPv6 address */
+ if (li->hostaddr.sa.sa_family == AF_INET6) {
+ sa6 = ((struct sockaddr_in6 *)&li->hostaddr.sa);