summaryrefslogtreecommitdiffstats
path: root/usr.bin/locate
diff options
context:
space:
mode:
authorwosch <wosch@FreeBSD.org>1996-10-12 20:29:25 +0000
committerwosch <wosch@FreeBSD.org>1996-10-12 20:29:25 +0000
commit0952f69287f5d12ff8081b348e9b4d49202eecf8 (patch)
treed43f989bdfb20f7811690661f08780e4f8d1186b /usr.bin/locate
parent69b9dc90e9a98172a0e713822b66b3d85c8b3a12 (diff)
downloadFreeBSD-src-0952f69287f5d12ff8081b348e9b4d49202eecf8.zip
FreeBSD-src-0952f69287f5d12ff8081b348e9b4d49202eecf8.tar.gz
export variable TMPDIR (which maybe set, but not exported in /etc/locate.rc)
Diffstat (limited to 'usr.bin/locate')
-rw-r--r--usr.bin/locate/locate/updatedb.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/locate/locate/updatedb.sh b/usr.bin/locate/locate/updatedb.sh
index 66c906e..f0717e0 100644
--- a/usr.bin/locate/locate/updatedb.sh
+++ b/usr.bin/locate/locate/updatedb.sh
@@ -26,7 +26,7 @@
#
# updatedb - update locate database for local mounted filesystems
#
-# $Id: updatedb.sh,v 1.3 1996/08/14 00:22:31 wosch Exp $
+# $Id: updatedb.sh,v 1.4 1996/08/27 20:04:28 wosch Exp $
LOCATE_CONFIG="/etc/locate.rc"
if [ -f "$LOCATE_CONFIG" -a -r "$LOCATE_CONFIG" ]; then
@@ -35,6 +35,7 @@ fi
# The directory containing locate subprograms
: ${LIBEXECDIR=/usr/libexec}; export LIBEXECDIR
+: ${TMPDIR=/tmp}; export TMPDIR
PATH=$LIBEXECDIR:/bin:/usr/bin:$PATH; export PATH
@@ -68,7 +69,7 @@ case X"$PRUNEPATHS" in
done;;
esac
-tmp=${TMPDIR=/tmp}/_updatedb$$
+tmp=$TMPDIR/_updatedb$$
trap 'rm -f $tmp' 0 1 2 3 5 10 15
# search locally
OpenPOWER on IntegriCloud