From e5ffb51bc29f43663d195b85d5a9bbce768dfd41 Mon Sep 17 00:00:00 2001 From: millert Date: Tue, 27 Oct 2015 15:23:28 +0000 Subject: Use AF_UNIX instead of AF_LOCAL. --- usr.sbin/lpr/common_source/startdaemon.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.sbin/lpr/common_source/startdaemon.c') diff --git a/usr.sbin/lpr/common_source/startdaemon.c b/usr.sbin/lpr/common_source/startdaemon.c index ca4acf98922..aec300c4910 100644 --- a/usr.sbin/lpr/common_source/startdaemon.c +++ b/usr.sbin/lpr/common_source/startdaemon.c @@ -1,4 +1,4 @@ -/* $OpenBSD: startdaemon.c,v 1.16 2015/10/11 20:23:49 guenther Exp $ */ +/* $OpenBSD: startdaemon.c,v 1.17 2015/10/27 15:23:28 millert Exp $ */ /* $NetBSD: startdaemon.c,v 1.10 1998/07/18 05:04:39 lukem Exp $ */ /* @@ -56,13 +56,13 @@ startdaemon(char *printer) size_t n; char buf[BUFSIZ]; - s = socket(AF_LOCAL, SOCK_STREAM, 0); + s = socket(AF_UNIX, SOCK_STREAM, 0); if (s < 0) { warn("socket"); return(0); } memset(&un, 0, sizeof(un)); - un.sun_family = AF_LOCAL; + un.sun_family = AF_UNIX; strlcpy(un.sun_path, _PATH_SOCKETNAME, sizeof(un.sun_path)); siginterrupt(SIGINT, 1); PRIV_START; -- cgit v1.2.3-59-g8ed1b