Module Name:    src
Committed By:   kre
Date:           Tue Nov 28 00:24:08 UTC 2017

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

Log Message:
Handle use of TMPDIR in cleanup as well.


To generate a diff of this commit:
cvs rdiff -u -r1.67 -r1.68 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.67 src/distrib/utils/embedded/mkimage:1.68
--- src/distrib/utils/embedded/mkimage:1.67	Tue Nov 28 00:14:30 2017
+++ src/distrib/utils/embedded/mkimage	Tue Nov 28 00:24:08 2017
@@ -1,5 +1,5 @@
 #!/bin/sh
-# $NetBSD: mkimage,v 1.67 2017/11/28 00:14:30 kre Exp $
+# $NetBSD: mkimage,v 1.68 2017/11/28 00:24:08 kre Exp $
 #
 # Copyright (c) 2013, 2014 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -74,7 +74,7 @@ trap "cleanup" 0 1 2 3 15
 
 cleanup() {
 	case "$tmp" in
-	/tmp/$PROG.*)	rm -fr "$tmp";;
+	"${TMPDIR:-/tmp}/$PROG."*)	rm -fr "$tmp";;
 	esac
 }
 

Reply via email to