summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>1998-12-13 01:53:50 +0000
committerdillon <dillon@FreeBSD.org>1998-12-13 01:53:50 +0000
commit4db40135ef077cff04415e111e2356591a49e08d (patch)
tree67c8973c05862bdcb47322c7b5bfa9289c36e77a /lib
parent3fa521a2d22918cde2e1652bcc39d746469720ab (diff)
downloadFreeBSD-src-4db40135ef077cff04415e111e2356591a49e08d.zip
FreeBSD-src-4db40135ef077cff04415e111e2356591a49e08d.tar.gz
PR: bin/3478
Have pwd_mkdb lock the source file while rebuilding the database. When called by programs such as vipw, the source file is a temporary file and this does not conflict with the lock on /etc/master.passwd already held by vipw. When run manually, however, master.passwd is typically specified as the argument and the locking prevents other programs from messing with master.passwd during the database rebuild. Also pwd_mkdb uses a blocking exclusive lock as it may be called from a script. The -N option was added to cause pwd_mkdb to get the lock non-blocking and exit with an error if the attempt fails, again useful for scripts.
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud