Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 09 Dec 2000 22:29:50 -0700
From:      Warner Losh <imp@village.org>
To:        Will Andrews <will@physics.purdue.edu>
Cc:        Chris Faulhaber <jedgar@fxp.org>, freebsd-audit@FreeBSD.ORG
Subject:   Re: mktemp(1) usage 
Message-ID:  <200012100529.WAA26442@harmony.village.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> 

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200012100529.WAA26442>