Date: Sat, 12 Dec 1998 18:03:02 -0800 (PST) From: Matthew Dillon <dillon@apollo.backplane.com> To: freebsd-current@FreeBSD.ORG Subject: minor vipw/pwd_mkdb changes commited Message-ID: <199812130203.SAA14359@apollo.backplane.com>
next in thread | raw e-mail | index | archive | help
I've made a few minor fixes to vipw and pwd_mkdb to handle a master.passwd
race condition (note: there are no security issues with the race). Also,
pwd_mkdb has been slightly modified to lock the source file. This file
is typically a temporary file when pwd_mkdb is run from vipw (etc...).
However, when pwd_mkdb is run manually (say, from a script), a race between
pwd_mkdb and someone editing master.passwd, running passwd, chpass,
etc... can ensue whereby the latter programs replace master.passwd and
regenerate the .db files while the original pwd_mkdb is still running,
causing the db files to reflect an out-of-date master.passwd. Again,
minor bugs but worth fixing.
-Matt
Matthew Dillon Engineering, HiWay Technologies, Inc. & BEST Internet
Communications & God knows what else.
<dillon@backplane.com> (Please include original email in any response)
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199812130203.SAA14359>
