mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-26 20:12:44 +00:00
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:
parent
2201f7c49f
commit
26bd374e72
@ -96,5 +96,5 @@ then
|
||||
echo "updatedb: locate database $tmp is empty" >&2
|
||||
exit 1
|
||||
fi
|
||||
install $tmp $FCODES
|
||||
cat $tmp >$FCODES
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user