[Bug 191515] print/cups-base: cupsd incorrectly requests peer's credentials

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Oct 24 17:22:43 UTC 2014


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191515

Bengt Ahlgren <bengta at sics.se> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bengta at sics.se

--- Comment #4 from Bengt Ahlgren <bengta at sics.se> ---
Created attachment 148622
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=148622&action=edit
patch to scheduler/auth.c

I tried the patch, and it does indeed solve the problem.  The reason is however
not that getsockopt does not work.  The "__APPLE__" variant of the call does
work:

    if (getsockopt(con->http.fd, 0, LOCAL_PEERCRED, &peercred, &peersize))

it is rather that "SOL_SOCKET" does not work, but apparently does not return an
error, but just does not touch "peercred", leaving whatever was there before.

I therefore propose a different patch - see attachment!

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list