From owner-freebsd-audit Sat Dec 9 21:29:54 2000 From owner-freebsd-audit@FreeBSD.ORG Sat Dec 9 21:29:53 2000 Return-Path: Delivered-To: freebsd-audit@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id 83A7737B401 for ; Sat, 9 Dec 2000 21:29:52 -0800 (PST) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.11.0/8.11.0) with ESMTP id eBA5Tps61075; Sat, 9 Dec 2000 22:29:51 -0700 (MST) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id WAA26442; Sat, 9 Dec 2000 22:29:51 -0700 (MST) Message-Id: <200012100529.WAA26442@harmony.village.org> To: Will Andrews Subject: Re: mktemp(1) usage Cc: Chris Faulhaber , freebsd-audit@FreeBSD.ORG In-reply-to: Your message of "Sat, 09 Dec 2000 17:13:34 EST." <20001209171334.J671@puck.firepipe.net> References: <20001209171334.J671@puck.firepipe.net> <20001209150853.A57045@peitho.fxp.org> Date: Sat, 09 Dec 2000 22:29:50 -0700 From: Warner Losh Sender: imp@harmony.village.org Sender: owner-freebsd-audit@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <20001209171334.J671@puck.firepipe.net> Will Andrews writes: : On Sat, Dec 09, 2000 at 03:08:54PM -0500, Chris Faulhaber wrote: : > Would it be more appropriate for scripts such as periodic(8) to : > call mktemp(1) using the -t flag. In addition to using TMPDIR, : > this allows the use of the system's _PATH_TMP instead of : > hardcoding /tmp. : : Maybe that method doesn't use a random enough number to avoid file : races? If it doesn't, then maybe it should, don't you think. But I think it does. We're looking at 8 X's. It would also be a good place to bump it to 10 if we needed to, say. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message