Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/utils/embedded Handle use of TMPDIR in cleanup as well.
details: https://anonhg.NetBSD.org/src/rev/f73ce26915b0
branches: trunk
changeset: 828092:f73ce26915b0
user: kre <kre%NetBSD.org@localhost>
date: Tue Nov 28 00:24:08 2017 +0000
description:
Handle use of TMPDIR in cleanup as well.
diffstat:
distrib/utils/embedded/mkimage | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r cc8cb4487c8f -r f73ce26915b0 distrib/utils/embedded/mkimage
--- a/distrib/utils/embedded/mkimage Tue Nov 28 00:14:30 2017 +0000
+++ b/distrib/utils/embedded/mkimage Tue Nov 28 00:24:08 2017 +0000
@@ -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 @@
cleanup() {
case "$tmp" in
- /tmp/$PROG.*) rm -fr "$tmp";;
+ "${TMPDIR:-/tmp}/$PROG."*) rm -fr "$tmp";;
esac
}
Home |
Main Index |
Thread Index |
Old Index