[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#298290: libc6: nsswitch behaviour is broken under NPTL



Package: libc6
Version: 2.3.2.ds1-20
Severity: normal


I first discovered this behaviour while configuring nss to use
libnss_lwres.  Having added to nsswitch.conf the line

hosts: files lwres [NOTFOUND=return] dns

I found that many binaries (ssh, apt-get, telnet although not ping)
would fail to do dns lookups when lwresd was not running.  They were
treating the unavailability of lwres as a NOTFOUND result and proceding
no further.  Changing the line to

hosts: files lwres dns

Made the probem go away but is obviously not the best solution.

This is not a bug in libnss_lwres: the behaviour persists if
alternatives are used or if a non-existent name switch module is used
(i.e. "hosts: files bogus [NOTFOUND=return] dns" triggers this bug but
"hosts: files bogus dns" does not).

If the NPTL libc libraries are not available (I tested this by moving
/lib/tls to /lib/tls.bak), the bug does not appear and nsswitch behaves
as it should.

This bug may be linked to #222130 but I can't be sure atm.

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-k7
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)

Versions of packages libc6 depends on:
ii  libdb1-compat                 2.1.3-7    The Berkeley database routines [gl

-- no debconf information



Reply to: