locate.updatedb: Revert to using cat to copy the db.

This script is usually run unprivileged, so install fails to create a
temporary file while copying the finished database.  Revert to using
cat, which can overwrite the existing file as it is usually owned by
the same user which is running the script.

Fixes:		f62c1f3f8e
MFC after:	1 week
Sponsored by:	Klara, Inc.
Reviewed by:	kevans
Differential Revision:	https://reviews.freebsd.org/D46872
This commit is contained in:
Dag-Erling Smørgrav 2024-10-02 17:54:57 +02:00
parent 2201f7c49f
commit 26bd374e72

View File

@ -96,5 +96,5 @@ then
echo "updatedb: locate database $tmp is empty" >&2
exit 1
fi
install $tmp $FCODES
cat $tmp >$FCODES
fi