tech-userlevel archive

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

getpwent and duplicate names in /etc/master.passwd



Hi all,
while looking at the code for getpwent, I stumbled across an
inconsistency in the behavior of pwd_mkdb. If /etc/master.passwd
contains a duplicate name (e.g. two lines for root), this is preserved
in spwd.db, but not in /etc/passwd. Is there any reason for such
behavior? Should pwd_mkdb reject installing the password file in first
place?

Joerg


Home | Main Index | Thread Index | Old Index