aboutsummaryrefslogtreecommitdiffstats
path: root/main/openssh/openssh-fix-utmp.diff
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-09-20 14:03:39 +0000
committerTimo Teräs <timo.teras@iki.fi>2013-09-20 14:03:39 +0000
commit2025a625e69398c4a81942971a893e11a9b31a51 (patch)
tree97cf160ca42c69e8714715d7fe23a746f7b467a9 /main/openssh/openssh-fix-utmp.diff
parent3a7ce65edc5837db91835bcddb371802a8d65904 (diff)
downloadaports-2025a625e69398c4a81942971a893e11a9b31a51.tar.gz
aports-2025a625e69398c4a81942971a893e11a9b31a51.tar.bz2
aports-2025a625e69398c4a81942971a893e11a9b31a51.tar.xz
main/openssh: fix build against musl
Diffstat (limited to 'main/openssh/openssh-fix-utmp.diff')
-rw-r--r--main/openssh/openssh-fix-utmp.diff21
1 files changed, 21 insertions, 0 deletions
diff --git a/main/openssh/openssh-fix-utmp.diff b/main/openssh/openssh-fix-utmp.diff
new file mode 100644
index 0000000000..6bfe49df65
--- /dev/null
+++ b/main/openssh/openssh-fix-utmp.diff
@@ -0,0 +1,21 @@
+--- openssh-6.2p2/loginrec.c.orig
++++ openssh-6.2p2/loginrec.c
+@@ -784,12 +784,12 @@
+ /* this is just a 128-bit IPv6 address */
+ if (li->hostaddr.sa.sa_family == AF_INET6) {
+ sa6 = ((struct sockaddr_in6 *)&li->hostaddr.sa);
+- memcpy(ut->ut_addr_v6, sa6->sin6_addr.s6_addr, 16);
++ memcpy(utx->ut_addr_v6, sa6->sin6_addr.s6_addr, 16);
+ if (IN6_IS_ADDR_V4MAPPED(&sa6->sin6_addr)) {
+- ut->ut_addr_v6[0] = ut->ut_addr_v6[3];
+- ut->ut_addr_v6[1] = 0;
+- ut->ut_addr_v6[2] = 0;
+- ut->ut_addr_v6[3] = 0;
++ utx->ut_addr_v6[0] = utx->ut_addr_v6[3];
++ utx->ut_addr_v6[1] = 0;
++ utx->ut_addr_v6[2] = 0;
++ utx->ut_addr_v6[3] = 0;
+ }
+ }
+ # endif
+