Date: Sat, 12 Dec 1998 17:53:51 -0800 (PST) From: Matt Dillon <dillon@FreeBSD.ORG> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: cvs commit: src/usr.sbin/pwd_mkdb pwd_mkdb.8 pwd_mkdb.c Message-ID: <199812130153.RAA03458@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
dillon 1998/12/12 17:53:50 PST Modified files: usr.sbin/pwd_mkdb pwd_mkdb.8 pwd_mkdb.c Log: 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. Revision Changes Path 1.8 +7 -0 src/usr.sbin/pwd_mkdb/pwd_mkdb.8 1.29 +36 -6 src/usr.sbin/pwd_mkdb/pwd_mkdb.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199812130153.RAA03458>