Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/distrib/utils/embedded Honour ${TMPDIR} if set for location ...



details:   https://anonhg.NetBSD.org/src/rev/471403e2b6f8
branches:  trunk
changeset: 357790:471403e2b6f8
user:      kre <kre%NetBSD.org@localhost>
date:      Tue Nov 28 00:14:30 2017 +0000

description:
Honour ${TMPDIR} if set for location of image, rather than always
simply using /tmp

diffstat:

 distrib/utils/embedded/mkimage |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 2e1659a2ce39 -r 471403e2b6f8 distrib/utils/embedded/mkimage
--- a/distrib/utils/embedded/mkimage    Mon Nov 27 23:54:28 2017 +0000
+++ b/distrib/utils/embedded/mkimage    Tue Nov 28 00:14:30 2017 +0000
@@ -1,5 +1,5 @@
 #!/bin/sh
-# $NetBSD: mkimage,v 1.66 2017/07/06 00:17:04 jmcneill Exp $
+# $NetBSD: mkimage,v 1.67 2017/11/28 00:14:30 kre Exp $
 #
 # Copyright (c) 2013, 2014 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -66,7 +66,7 @@
 minfree="10%"
 bar="==="
 
-tmp="$(mktemp -d "/tmp/$PROG.XXXXXX")"
+tmp="$(mktemp -d "${TMPDIR:-/tmp}/$PROG.XXXXXX")"
 mnt="${tmp}/mnt"
 mkdir -p "${mnt}/etc" "${mnt}/dev"
 



Home | Main Index | Thread Index | Old Index