Date: Tue, 17 May 2005 14:44:46 +0200 From: Alexander Leidinger <netchild@FreeBSD.org> To: Max Okumoto <okumoto@ucsd.edu> Cc: harti@freebsd.org Subject: Re: cvs commit: src/usr.bin/make job.c Message-ID: <20050517144446.gibxprydoosokw0k@netchild.homeip.net> 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
Max Okumoto <okumoto@ucsd.edu> 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? :-) Are you sure? mkdtemp() generates a "random" name like mkstemp() does, so the race would have existed already before (but the probability is very low that two make instances generate the same name)... Bye, Alexander. -- http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 Oh my God! Space aliens! Don't eat me, I have a wife and kids! Eat them. -- Homer Simpson Treehouse of Horror VII
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050517144446.gibxprydoosokw0k>