Date: Sun, 11 Jul 1999 20:34:04 -0400 (EDT) From: "Brian F. Feldman" <green@FreeBSD.org> To: Warner Losh <imp@village.org> Cc: Niall Smart <niall@pobox.com>, hackers@FreeBSD.org Subject: Re: a BSD identd Message-ID: <Pine.BSF.4.10.9907112031200.31726-100000@janus.syracuse.net> In-Reply-To: <199907112236.QAA36914@harmony.village.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 11 Jul 1999, Warner Losh wrote: > In message <Pine.BSF.4.10.9907111408060.25135-100000@janus.syracuse.net> "Brian F. Feldman" writes: > : Good idea. I'll have it check to see that it's a regular file. > > Make sure that you do this with the stat, open, fstat interlocking so > that there isn't a race here. I have this fixed in my latest code (on freefall of course). I did not use an original stat because that's pointless, as it adds another race condition. The only downside to my approach is that if it's a symlink to a dev, the dev can get opened/closed, and d_open/d_close be called. > > Warner > Brian Fundakowski Feldman _ __ ___ ____ ___ ___ ___ green@FreeBSD.org _ __ ___ | _ ) __| \ FreeBSD: The Power to Serve! _ __ | _ \._ \ |) | http://www.FreeBSD.org/ _ |___/___/___/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9907112031200.31726-100000>