This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug nscd/14282] New: Make nss/nscd vardb use $(localstatedir)


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]