Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 136791 Details for
Bug 200104
sys-auth/libnss-pgsql - get rid of "Could not connect to database" as normal user
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to solve the describe issue
libnss-pgsql-1.4.0-shadow-nonroot.patch (text/plain), 648 bytes, created by
Thorsten Meinl
on 2007-11-23 19:11:10 UTC
(
hide
)
Description:
Patch to solve the describe issue
Filename:
MIME Type:
Creator:
Thorsten Meinl
Created:
2007-11-23 19:11:10 UTC
Size:
648 bytes
patch
obsolete
>diff -r -C 2 libnss-pgsql-1.4.0.orig/src/backend.c libnss-pgsql-1.4.0/src/backend.c >*** libnss-pgsql-1.4.0.orig/src/backend.c 2007-11-23 19:44:10.000000000 +0100 >--- libnss-pgsql-1.4.0/src/backend.c 2007-11-23 19:44:44.000000000 +0100 >*************** >*** 74,77 **** >--- 74,80 ---- > } > _shadowconn = PQconnectdb(getcfg("shadowconnectionstring")); >+ } else if (errno == EACCES) { >+ /* very likely we are not root and are simply not allowd to read shadow */ >+ return 0; > } > >
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 200104
: 136791