Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-7]: src/sys/kern Pull up following revision(s) (requested by taca...
details: https://anonhg.NetBSD.org/src/rev/9755b7fad727
branches: netbsd-7
changeset: 798406:9755b7fad727
user: snj <snj%NetBSD.org@localhost>
date: Sat Oct 11 16:16:44 2014 +0000
description:
Pull up following revision(s) (requested by taca in ticket #132):
sys/kern/uipc_usrreq.c: revision 1.172
Make behavior of getsockname(2) (and maybe getpeername(2)) as the same as
NetBSD 6.1_STABLE and other operating system (OS X 10.9.5).
* sa_len of sockaddr_un strucrure is always set to sizeof(sun_path).
* pathname stored in sun_path is alwasys '\0' terminated (except length
of sun_path is sizeof(sun_path)?).
Should be fix PR kern/49247, runtime problem of lmtp service of dovecot2 on
NetBSD current and NetBSD 7.0_BETA.
diffstat:
sys/kern/uipc_usrreq.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diffs (27 lines):
diff -r 25d4bcb32265 -r 9755b7fad727 sys/kern/uipc_usrreq.c
--- a/sys/kern/uipc_usrreq.c Fri Oct 10 18:17:03 2014 +0000
+++ b/sys/kern/uipc_usrreq.c Sat Oct 11 16:16:44 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uipc_usrreq.c,v 1.169 2014/08/09 05:33:00 rtr Exp $ */
+/* $NetBSD: uipc_usrreq.c,v 1.169.2.1 2014/10/11 16:16:44 snj Exp $ */
/*-
* Copyright (c) 1998, 2000, 2004, 2008, 2009 The NetBSD Foundation, Inc.
@@ -96,7 +96,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uipc_usrreq.c,v 1.169 2014/08/09 05:33:00 rtr Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uipc_usrreq.c,v 1.169.2.1 2014/10/11 16:16:44 snj Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -927,8 +927,6 @@
sun = malloc(*addrlen, M_SONAME, M_WAITOK);
m_copydata(nam, 0, nam->m_len, (void *)sun);
*(((char *)sun) + nam->m_len) = '\0';
- sun->sun_len = strlen(sun->sun_path) +
- offsetof(struct sockaddr_un, sun_path);
return sun;
}
Home |
Main Index |
Thread Index |
Old Index