Date: Sat, 12 Dec 1998 17:36:45 -0800 (PST) From: Matt Dillon <dillon@FreeBSD.ORG> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: cvs commit: src/usr.sbin/vipw pw_util.c Message-ID: <199812130136.RAA02705@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
dillon 1998/12/12 17:36:45 PST
Modified files:
usr.sbin/vipw pw_util.c
Log:
Handle the race condition where vipw may lock a password file which has
just been replaced. After our lock succeeds we check if st_nlink is 0
and if it is we close the descriptor and retry our open/lock sequence.
Revision Changes Path
1.12 +22 -6 src/usr.sbin/vipw/pw_util.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?199812130136.RAA02705>
