From owner-freebsd-stable Sun Jun 23 9: 2:27 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mail.deltanet.com (mail.deltanet.com [216.237.144.132]) by hub.freebsd.org (Postfix) with ESMTP id 75F4C37B400 for ; Sun, 23 Jun 2002 09:02:21 -0700 (PDT) Received: from mammoth.eat.frenchfries.net (da001d0406.lax-ca.osd.concentric.net [64.0.145.151]) by mail.deltanet.com (8.11.6/8.11.6) with ESMTP id g5NFc9O25829 for ; Sun, 23 Jun 2002 08:38:11 -0700 Received: by mammoth.eat.frenchfries.net (Postfix, from userid 1000) id B18B75150; Sun, 23 Jun 2002 09:00:52 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by mammoth.eat.frenchfries.net (Postfix) with ESMTP id AED32514C; Sun, 23 Jun 2002 09:00:52 -0700 (PDT) Date: Sun, 23 Jun 2002 09:00:52 -0700 (PDT) From: Paul Herman X-X-Sender: pherman@mammoth.eat.frenchfries.net To: "Geoffrey C. Speicher" Cc: "Matthew D. Fuller" , , Matt Simerson Subject: Re: bug in pw, -STABLE [patch] In-Reply-To: <20020623083510.K29729-100000@sea-incorporated.com> Message-ID: <20020623085312.U38255-100000@mammoth.eat.frenchfries.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, 23 Jun 2002, Geoffrey C. Speicher wrote: > > Keep it simple. Do what you mean. If you want to make changes to > > /etc/master.passwd then open(2) /etc/master.passwd with O_EXLOCK. > > As Matt Fuller already pointed out in a follow-up, that brings us back to > where we were when we started, and it doesn't work for this application, > since master.passwd disappears and reappears before we're done. How so? I'm not suggesting unlink(2)ing /etc/master.passwd or /etc/spwd.db at all. -Paul. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message