Module Name:    src
Committed By:   kre
Date:           Tue Nov 28 00:14:30 UTC 2017

Modified Files:
        src/distrib/utils/embedded: mkimage

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


To generate a diff of this commit:
cvs rdiff -u -r1.66 -r1.67 src/distrib/utils/embedded/mkimage

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/distrib/utils/embedded/mkimage
diff -u src/distrib/utils/embedded/mkimage:1.66 src/distrib/utils/embedded/mkimage:1.67
--- src/distrib/utils/embedded/mkimage:1.66	Thu Jul  6 00:17:04 2017
+++ src/distrib/utils/embedded/mkimage	Tue Nov 28 00:14:30 2017
@@ -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 @@ xsets="xbase xcomp xetc xfont xserver" 
 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"
 

Reply via email to