export variable TMPDIR (which maybe set, but not exported in /etc/locate.rc)
This commit is contained in:
parent
b14765b3ed
commit
374e137655
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=18895
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user