From owner-freebsd-bugs Mon Jun 24 23: 0:48 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 76C2637B40A for ; Mon, 24 Jun 2002 23:00:09 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g5P609S08416; Mon, 24 Jun 2002 23:00:09 -0700 (PDT) (envelope-from gnats) Date: Mon, 24 Jun 2002 23:00:09 -0700 (PDT) Message-Id: <200206250600.g5P609S08416@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: "Matthew D. Fuller" Subject: Re: bin/38676 change request for pw command Reply-To: "Matthew D. Fuller" Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR bin/38676; it has been noted by GNATS. From: "Matthew D. Fuller" To: Paul Herman Cc: FreeBSD-gnats-submit@FreeBSD.ORG, Takumi ISHII , "Geoffrey C. Speicher" Subject: Re: bin/38676 change request for pw command Date: Tue, 25 Jun 2002 00:58:29 -0500 On Mon, Jun 24, 2002 at 10:52:50PM -0700 I heard the voice of Paul Herman, and lo! it spake thus: > > The topic of HOW to best fix this bug has recently been hashed out > a bit on -hackers and -stable. Matthew Fuller proposed an > alternate fix by using a giant lock in /var/run/, so the jury is > still out on the best way to solve the problem. > > I'll let Matthew speak for himself, but I feel that the either the > patch in bin/23501 or the following improved patch is the best way > to solve the problem. Opinions in the audit-trail are surely to > follow. :-) First post! *duck* I see no problem with (assuming this works; I'm short on testing time for this OR my method this week), if nothing else, smacking this in for now; it's not like we can't change our attack method on this next week or next month. However: > + for (;;) { > + [ stuff(); ] > + close(infd); > + } Might I suggest a sleep(1); in there? Give the poor CPU a break! :-> -- Matthew Fuller (MF4839) | fullermd@over-yonder.net Systems/Network Administrator | http://www.over-yonder.net/~fullermd/ "The only reason I'm burning my candle at both ends, is because I haven't figured out how to light the middle yet" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message