rpc.yppasswd always calls yp_mkdb on master.passwd, which really should only be done if you are exporting /etc/master.passwd. Fix: Only call pw_mkdb if passfile == _PATH_MASTERPASSWD. Otherwise, rename master.passwd to a temp filename, rename the new passwd to master.passwd, and let yppwupdate update passwd as it sees fit. This also fixes PR bin/7968. How-To-Repeat: Set up an NIS server, and run passwd on a client. If it succeeds, you'll see that passwd.db and spwd.db get created in /yar/yp. It also ends up zeroing out the passwd field in the passwd map, which is not a good idea if you're serving non-FreeBSD clients.
Responsible Changed From-To: freebsd-bugs->mbr Take this PR.
State Changed From-To: open->feedback Committed to CURRENT. I guess we will need a patch for STABLE too, right ?
State Changed From-To: feedback->closed Committed back in 2003.