mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-09 16:01:19 +01:00
Use mktemp(1) for tempfiles (concatdb.sh), and increase the number of X's.
This commit is contained in:
parent
c7c26de958
commit
c144d68c9f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=55835
@ -56,7 +56,7 @@ case $# in
|
||||
esac
|
||||
|
||||
|
||||
bigrams=$TMPDIR/_concatdb$$.bigrams
|
||||
bigrams=`mktemp ${TMPDIR=/tmp}/_bigrams.XXXXXXXXXX` || exit 1
|
||||
trap 'rm -f $bigrams' 0 1 2 3 5 10 15
|
||||
|
||||
for db
|
||||
|
@ -39,7 +39,7 @@ umask 077 # protect temp files
|
||||
|
||||
: ${TMPDIR:=/tmp}; export TMPDIR
|
||||
test -d "$TMPDIR" || TMPDIR=/tmp
|
||||
if ! TMPDIR=`mktemp -d $TMPDIR/mklocateXXXXXX`; then
|
||||
if ! TMPDIR=`mktemp -d $TMPDIR/mklocateXXXXXXXXXX`; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
@ -36,7 +36,7 @@ fi
|
||||
# The directory containing locate subprograms
|
||||
: ${LIBEXECDIR:=/usr/libexec}; export LIBEXECDIR
|
||||
: ${TMPDIR:=/tmp}; export TMPDIR
|
||||
if ! TMPDIR=`mktemp -d $TMPDIR/locateXXXXXX`; then
|
||||
if ! TMPDIR=`mktemp -d $TMPDIR/locateXXXXXXXXXX`; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user