FreeBSD Bugzilla – Attachment 145814 Details for
Bug 191515
print/cups-base: cupsd incorrectly requests peer's credentials
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Workaround to fix a problem
patch-auth.c (text/plain), 489 bytes, created by
Dmitry Afanasiev
on 2014-08-15 12:01:34 UTC
(
hide
)
Description:
Workaround to fix a problem
Filename:
MIME Type:
Creator:
Dmitry Afanasiev
Created:
2014-08-15 12:01:34 UTC
Size:
489 bytes
patch
obsolete
>--- scheduler/auth.c.orig 2014-06-30 19:17:02.796524975 +0400 >+++ scheduler/auth.c 2014-06-30 19:18:00.818031410 +0400 >@@ -559,7 +559,7 @@ > # ifdef __APPLE__ > if (getsockopt(con->http.fd, 0, LOCAL_PEERCRED, &peercred, &peersize)) > # else >- if (getsockopt(con->http.fd, SOL_SOCKET, SO_PEERCRED, &peercred, &peersize)) >+ if (getpeereid(con->http.fd, &(peercred.cr_uid), &(peercred.cr_groups[0]))) > # endif /* __APPLE__ */ > { > cupsdLogMessage(CUPSD_LOG_ERROR,
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 191515
: 145814 |
148622