[PATCH] scripts/trylink: use portable invocation of mktemp

Brad Kemp brad at beechwoods.com
Mon Jul 11 13:44:45 UTC 2016


> On Jul 10, 2016, at 8:33 PM, Andrew Oates <andrew at andrewoates.com> wrote:
> 
> --tmpdir unfortunately doesn't work on OS X/BSD-style mktemp, but '-t' does.  So "mktemp -t tmp.XXXXXXXXXX" obeys TMPDIR on both Linux and OS X.  "-t" is marked as deprecated in the Linux version's manpage, however --- not sure if you consider that a problem.
> 
> Alternatively, it could just run "mktemp tmp.XXXXXXXXXX", which creates the temporary file in the current directory on both systems.  Not ideal, but consistent (and maybe that's fine given how the script is used in the build system?)
> 
The local directory may not be writeable
Brad

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20160711/90da03be/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 203 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20160711/90da03be/attachment.asc>


More information about the busybox mailing list