From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Wed, 28 Oct 2015 09:33:13 +0100 From: Henning Schild Message-ID: <20151028093313.201c9817@md1em3qc> In-Reply-To: <20151027133540.2f264249@md1em3qc> References: <1445948476-7587-1-git-send-email-henning.schild@siemens.com> <20151027123003.GA4874@hermes.click-hack.org> <20151027133540.2f264249@md1em3qc> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai] [PATCH] scripts: use mktemp instead of relying on TMPDIR beeing in env List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gilles Chanteperdrix Cc: xenomai@xenomai.org On Tue, 27 Oct 2015 13:35:40 +0100 Henning Schild wrote: > On Tue, 27 Oct 2015 13:30:04 +0100 > Gilles Chanteperdrix wrote: > > > On Tue, Oct 27, 2015 at 01:21:16PM +0100, Henning Schild wrote: > > > The environment variable TMPDIR is optional and not always set. We > > > could test for it and fall back to /tmp/ or just use the tool > > > mktemp. > > > > I am not sure mktemp is available everywhere. What about setting > > TMPDIR to /tmp if not set ? > > From what i can tell mktemp is more widely available than TMPDIR. My > gentoo boxes do not have TMPDIR set and i have used a ubuntu system > where it was not set either. mktemp is part of coreutils and even > busybox has one. > I did not feel too good reimplementing whatever else mktemp does, why > reinvent the wheel? Please let me know whether i was convincing and the current patch version will be merged. Henning > _______________________________________________ > Xenomai mailing list > Xenomai@xenomai.org > http://xenomai.org/mailman/listinfo/xenomai