[Bug 191515] print/cups-base: cupsd incorrectly requests peer's credentials
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Nov 2 19:42:33 UTC 2014
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191515
--- Comment #5 from Bengt Ahlgren <bengta at 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.
More information about the freebsd-ports-bugs
mailing list