Fix inconsistent passwd compensation in nss/bug17079.c
commit5a9af6376d43b58c6545feb86002812a57956654
authorFlorian Weimer <fweimer@redhat.com>
Fri, 25 Sep 2015 18:20:33 +0000 (25 20:20 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Fri, 25 Sep 2015 18:20:33 +0000 (25 20:20 +0200)
treeaeb62c182d924a971e14cdd3f46c5e81d7c0e4ed
parent775e99641eca25a0dc9049253fe12b02c568f97a
Fix inconsistent passwd compensation in nss/bug17079.c

It used to be common practice to have a statically linked shell for an
alternative root account, as in:

root:x:0:0:root:/root:/bin/bash
toor:x:0:0:root recovery account:/root:/sbin/sash

This causes problems with passwd NSS tests because a UID-based lookup
will only retrieve one of those entries.  The original version of
nss/bug17079.c detected this, but failed to use this information later
on.
ChangeLog
nss/bug17079.c