mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-05 14:29:28 +00:00
323a8537ab
find two users with the same UID (i.e. root and toor), but yp_mkdb(8) forbits duplicate keys, so only one of them will end up in the *.byuid maps (probably toor, since it comes after root in the template file). If I asked rpc.yppasswdd(8) to change toor's password, it would update the *.byname maps correctly, but incorrectly modify root's entry in the *.byuid maps since the only matching record with UID=0 in those maps belongs to root. To fix this, we check that both the name and UID are correct before trying to write new entries to the maps. |
||
---|---|---|
.. | ||
Makefile | ||
pw_copy.c | ||
pw_util.c | ||
rpc.yppasswdd.8 | ||
yppasswd_comm.c | ||
yppasswd_comm.h | ||
yppasswd_private.x | ||
yppasswdd_extern.h | ||
yppasswdd_main.c | ||
yppasswdd_server.c | ||
yppwupdate |