Bug#32370: libc6: getpwent() returns each user twice when using "passwd: db files" in nsswitch
On Fri, 05 Feb 1999, Thorsten Kukuk wrote:
>The output is correct. If you tell the NSS functions over
>/etc/nsswitch.conf, to search in db AND in files, getpwent
>will show you both, all entries from db and all entries
>from files. If you don't like that, configure /etc/nsswich.conf
>correct to use only one of both. You could find more information
>in the libc.info pages, and man nsswitch.
The man pages don't make this clear at all. I have not yet read the info
sections to see whether they clarify the matter. However I trust your opinion
that the behaviour I witnessed was correct.
When KDE moves into it's next experimental stage I will put in some code in the
kdm (KDE's xdm) to check for duplicate entries for the case where the user has
set "db files".
Russell Coker
Reply to: