Date: Sun, 02 Nov 2014 19:42:32 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 191515] print/cups-base: cupsd incorrectly requests peer's credentials Message-ID: <bug-191515-13-jp41vE44aU@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-191515-13@https.bugs.freebsd.org/bugzilla/> References: <bug-191515-13@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191515 --- Comment #5 from Bengt Ahlgren <bengta@sics.se> --- Can a ports committer please consider committing this very simple patch that solves the issue (also in attachment)? --- scheduler/auth.c.orig 2014-01-06 23:21:15.000000000 +0100 +++ scheduler/auth.c 2014-10-24 19:09:55.000000000 +0200 @@ -556,7 +556,7 @@ peersize = sizeof(peercred); -# ifdef __APPLE__ +# if defined(__APPLE__) || defined(__FreeBSD__) if (getsockopt(con->http.fd, 0, LOCAL_PEERCRED, &peercred, &peersize)) # else if (getsockopt(con->http.fd, SOL_SOCKET, SO_PEERCRED, &peercred, &peersize)) @@ -1155,7 +1155,7 @@ peersize = sizeof(peercred); -# ifdef __APPLE__ +# if defined(__APPLE__) || defined(__FreeBSD__) if (getsockopt(con->http.fd, 0, LOCAL_PEERCRED, &peercred, &peersize)) # else if (getsockopt(con->http.fd, SOL_SOCKET, SO_PEERCRED, &peercred, -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-191515-13-jp41vE44aU>