getent repeatedly attempts to open DB_CONFIG

Bug #320953 reported by Anand Kumria
2
Affects Status Importance Assigned to Milestone
glibc (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: libc6

Hi,

I was doing some testing of db files as sources of information for maps (as in using 'db' in nsswitch.conf).

Checking to see how getent was getting the information, I straced and saw:

open("/var/lib/misc/passwd.db", O_RDONLY|O_LARGEFILE) = 4
open("DB_CONFIG", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/proc/stat", O_RDONLY) = 4
open("/var/lib/misc/passwd.db", O_RDONLY|O_LARGEFILE) = 4
open("/var/lib/misc/passwd.db", O_RDONLY|O_LARGEFILE) = 4
open("DB_CONFIG", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/proc/stat", O_RDONLY) = 4
open("/var/lib/misc/passwd.db", O_RDONLY|O_LARGEFILE) = 4
open("/var/lib/misc/passwd.db", O_RDONLY|O_LARGEFILE) = 4
open("DB_CONFIG", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/proc/stat", O_RDONLY) = 4
open("/var/lib/misc/passwd.db", O_RDONLY|O_LARGEFILE) = 4
open("/var/lib/misc/passwd.db", O_RDONLY|O_LARGEFILE) = 4
open("DB_CONFIG", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/proc/stat", O_RDONLY) = 4

I will not comment on the multiple openings of the DB file -- but it does seem odd that 'DB_CONFIG' is repeatedly being open (or attempted to be being opened).

Is that a configuration variable that has leaked out?

Thanks,
Anand

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.