Re: cvs commit: src/usr.bin/make job.c

看板FB_security作者時間20年前 (2005/05/19 20:44), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串6/6 (看更多)
--VbJkn9YxBvnuCH5J Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2005.05.18 08:41:14 -0700, Max Okumoto wrote: > Alexander suggested that I replace that code with > mkdtemp(template) > mkfifo(tempalte + "/fifo") >=20 > Which removed alot of the code duplication, but added the race > back in. [...] Ehh, where is the race? mkdtemp creates a unique directory with permissions 0700 so nobody else can race make(1) to the fifo in the temporary... or am I missing something? --=20 Simon L. Nielsen --VbJkn9YxBvnuCH5J Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCjIoHh9pcDSc1mlERAka1AJ0RQkmhA/tH0QFM4kSyuw80H4cdpQCgtV7f idxRSQv7KRdi9RTmXJPUym8= =PY9+ -----END PGP SIGNATURE----- --VbJkn9YxBvnuCH5J--
文章代碼(AID): #12Z8er00 (FB_security)
文章代碼(AID): #12Z8er00 (FB_security)