Date: Tue, 17 May 2005 09:11:21 +0200 From: Joerg Sonnenberger <joerg@britannica.bec.de> To: cvs-src@freebsd.org Subject: Re: cvs commit: src/usr.bin/make job.c Message-ID: <20050517071121.GA1915@britannica.bec.de> In-Reply-To: <42897003.2090005@ucsd.edu> References: <200505121545.j4CFjENu078768@repoman.freebsd.org> <20050512180743.6z1h22fldwksgw4w@netchild.homeip.net> <hfbr7ge2gu.fsf@multivac.sdsc.edu> <42897003.2090005@ucsd.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, May 16, 2005 at 09:16:03PM -0700, Max Okumoto wrote: > If I use mkdtemp(), there is a chance that someone with the > same UID could race to build the fifo. Do we care about > races with ourselves? Or am I just being toooo paranoid? :-) You just check the return value of mkdir, if it already exists, you know that something evil happened. That's enough to prevent races. Joerg
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050517071121.GA1915>