From owner-cvs-all Sat Dec 12 17:36:47 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA24029 for cvs-all-outgoing; Sat, 12 Dec 1998 17:36:47 -0800 (PST) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA24024; Sat, 12 Dec 1998 17:36:46 -0800 (PST) (envelope-from dillon@FreeBSD.org) From: Matt Dillon Received: (from dillon@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id RAA02705; Sat, 12 Dec 1998 17:36:45 -0800 (PST) Date: Sat, 12 Dec 1998 17:36:45 -0800 (PST) Message-Id: <199812130136.RAA02705@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: cvs commit: src/usr.sbin/vipw pw_util.c Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk 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