-/* $OpenBSD: accept.c,v 1.4 2004/02/28 03:29:15 deraadt Exp $ */
+/* $OpenBSD: accept.c,v 1.5 2015/01/19 00:22:30 guenther Exp $ */
/*
* Written by Artur Grabowski <art@openbsd.org>, 2002 Public Domain.
*/
memset(&sun, 0, sizeof(sun));
sun.sun_family = AF_LOCAL;
strlcpy(sun.sun_path, SOCK_NAME, sizeof sun.sun_path);
- sun.sun_len = SUN_LEN(&sun);
if (bind(listensock, (struct sockaddr *)&sun, sizeof(sun)) == -1)
(void) memset(&sun, 0, sizeof(sun));
sun.sun_family = AF_LOCAL;
(void) strlcpy(sun.sun_path, SOCK_NAME, sizeof sun.sun_path);
- sun.sun_len = SUN_LEN(&sun);
if (connect(sock, (struct sockaddr *)&sun, sizeof(sun)) == -1)
err(1, "child connect");
-/* $OpenBSD: getpeereid_test.c,v 1.2 2014/07/20 01:38:40 guenther Exp $ */
+/* $OpenBSD: getpeereid_test.c,v 1.3 2015/01/19 00:22:30 guenther Exp $ */
/* Written by Marc Espie in 2006 */
/* Public domain */
#include <sys/types.h>
if (strlcpy(sun.sun_path, path, sizeof(sun.sun_path)) >=
sizeof(sun.sun_path))
errx(1, "Memory error");
- sun.sun_len = sizeof(sun);
sun.sun_family = AF_UNIX;
/* let's make those two rendez-vous, a bit artificial */
-/* $OpenBSD: unfdpass.c,v 1.17 2011/07/06 19:48:10 matthew Exp $ */
+/* $OpenBSD: unfdpass.c,v 1.18 2015/01/19 00:22:30 guenther Exp $ */
/* $NetBSD: unfdpass.c,v 1.3 1998/06/24 23:51:30 thorpej Exp $ */
/*-
(void) memset(&sun, 0, sizeof(sun));
sun.sun_family = AF_LOCAL;
(void) strlcpy(sun.sun_path, SOCK_NAME, sizeof sun.sun_path);
- sun.sun_len = SUN_LEN(&sun);
if (bind(listensock, (struct sockaddr *)&sun, sizeof(sun)) == -1)
err(1, "bind");
(void) memset(&sun, 0, sizeof(sun));
sun.sun_family = AF_LOCAL;
(void) strlcpy(sun.sun_path, SOCK_NAME, sizeof sun.sun_path);
- sun.sun_len = SUN_LEN(&sun);
if (connect(sock, (struct sockaddr *)&sun, sizeof(sun)) == -1)
err(1, "child connect");