freebsd-skq/usr.sbin/pwd_mkdb
dillon 4db40135ef 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.
1998-12-13 01:53:50 +00:00
..
Makefile Allow comments in password database. The comments are copied from 1997-03-08 14:09:24 +00:00
pw_scan.c Staticize usage(). Cosmetics. 1997-10-10 06:27:07 +00:00
pw_scan.h BSD 4.4 Lite usr.sbin Sources 1994-05-26 05:23:31 +00:00
pwd_mkdb.8 PR: bin/3478 1998-12-13 01:53:50 +00:00
pwd_mkdb.c PR: bin/3478 1998-12-13 01:53:50 +00:00