Date: Mon, 16 May 2005 21:16:03 -0700 From: Max Okumoto <okumoto@ucsd.edu> To: Max Okumoto <okumoto@ucsd.edu> Cc: Alexander Leidinger <Alexander@Leidinger.net> Subject: Re: cvs commit: src/usr.bin/make job.c Message-ID: <42897003.2090005@ucsd.edu> In-Reply-To: <hfbr7ge2gu.fsf@multivac.sdsc.edu> References: <200505121545.j4CFjENu078768@repoman.freebsd.org> <20050512180743.6z1h22fldwksgw4w@netchild.homeip.net> <hfbr7ge2gu.fsf@multivac.sdsc.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
Max Okumoto wrote: > Alexander Leidinger <Alexander@Leidinger.net> writes: > > [stuff deleted] > >>For those which didn't looked at the src: he can't use mkstemp() since he >>wants to create a fifo. >> >>But "making a copy" and creating mkfifo() out of it looks like overkill to >>me. Why not using mkdtemp() and creating a fixed name in this temporary >>directory instead? >> >>Bye, >>Alexander. > > > [stuff deleted] > > Hmmm... Didn't think of that :-) That is better way since I wouldn't > have to maintain a my own copy of the code. I will work up a patch. > > Max 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? :-) Max
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42897003.2090005>