Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Feb 2010 10:21:19 +0100
From:      Erik Trulsson <ertr1013@student.uu.se>
To:        Doug Barton <dougb@FreeBSD.org>
Cc:        Garrett Cooper <yanefbsd@gmail.com>, FreeBSD-Hackers <freebsd-hackers@freebsd.org>
Subject:   Re: mktemp(1) in /tmp or $PWD?
Message-ID:  <20100226092119.GA61498@owl.midgard.homeip.net>
In-Reply-To: <alpine.BSF.2.00.1002252225410.50330@qbhto.arg>
References:  <7d6fde3d1002251850m3d32904emece0182e905b84c5@mail.gmail.com> <7d6fde3d1002252100oc64434ci5f6783ff10a9f0ea@mail.gmail.com> <alpine.BSF.2.00.1002252225410.50330@qbhto.arg>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Feb 25, 2010 at 10:27:40PM -0800, Doug Barton wrote:
> On Thu, 25 Feb 2010, Garrett Cooper wrote:
> 
> > So what I did was I wrote up a patch to be *I know... here it comes*
> > more like GNU coreutils' copy of mktemp.
> 
> What's the motivation for this? I'm a little confused about why we'd 
> want to change this when the -t option already exists. Also, does POSIX 
> say anything about what the default should be?

POSIX does not define the mktemp(1) utility as far as I can tell, and
thus says nothing about the default.

The HISTORY section in the manpage says that mktemp(1) originated with
OpenBSD so if anything it is the OpenBSD implementation that ought to
be used as a reference.

If the GNU implementation behaves differently, then I would say it is
likely the GNU version which is wrong.


-- 
<Insert your favourite quote here.>
Erik Trulsson
ertr1013@student.uu.se



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