From owner-freebsd-audit Sat Dec 9 14:13:37 2000 From owner-freebsd-audit@FreeBSD.ORG Sat Dec 9 14:13:36 2000 Return-Path: Delivered-To: freebsd-audit@freebsd.org Received: from puck.firepipe.net (mcut-b-167.resnet.purdue.edu [128.211.209.167]) by hub.freebsd.org (Postfix) with ESMTP id D0DA337B400 for ; Sat, 9 Dec 2000 14:13:35 -0800 (PST) Received: by puck.firepipe.net (Postfix, from userid 1000) id D4B1619A2; Sat, 9 Dec 2000 17:13:34 -0500 (EST) Date: Sat, 9 Dec 2000 17:13:34 -0500 From: Will Andrews To: Chris Faulhaber Cc: freebsd-audit@FreeBSD.ORG Subject: Re: mktemp(1) usage Message-ID: <20001209171334.J671@puck.firepipe.net> Reply-To: Will Andrews References: <20001209150853.A57045@peitho.fxp.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20001209150853.A57045@peitho.fxp.org>; from jedgar@fxp.org on Sat, Dec 09, 2000 at 03:08:54PM -0500 X-Operating-System: FreeBSD 4.2-STABLE i386 Sender: will@puck.firepipe.net Sender: owner-freebsd-audit@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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? -- wca To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message