[Bug nscd/14282] New: Make nss/nscd vardb use $(localstatedir)
siddhesh at redhat dot com
sourceware-bugzilla@sourceware.org
Fri Jun 22 18:26:00 GMT 2012
http://sourceware.org/bugzilla/show_bug.cgi?id=14282
Bug #: 14282
Summary: Make nss/nscd vardb use $(localstatedir)
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: nscd
AssignedTo: unassigned@sourceware.org
ReportedBy: siddhesh@redhat.com
CC: drepper.fsp@gmail.com
Classification: Unclassified
Currently the vardb location is hard-coded in nss and nscd as /var/db. this
should ideally use $(localstatedir) so that an installation into a non-standard
path (especially nscd) does not tinker with the default installation.
Steps to Reproduce:
1) Build glibc with a prefix other than /usr
2) make install
3) Run the nscd from the installation
Expected results:
nscd should generate its db files in the install prefix.
Actual Results:
nscd tries to generate and use the db files in /var/db/nscd:
[siddhesh@localhost glibc-sandbox ]$ LD_LIBRARY_PATH=./lib:/lib64:/usr/lib64
sbin/nscd -d
Fri Jun 22 18:25:23 2012 - 16894: register trace file /etc/hosts for database
hosts
Fri Jun 22 18:25:23 2012 - 16894: register trace file /etc/resolv.conf for
database hosts
sbin/nscd: cannot access '/var/db/nscd/hosts'
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list