Page MenuHomeFreeBSD

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

Authored by des on Oct 2 2024, 11:05 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 22, 10:32 PM
Unknown Object (File)
Dec 17 2025, 4:55 PM
Unknown Object (File)
Dec 14 2025, 10:32 PM
Unknown Object (File)
Nov 29 2025, 9:23 PM
Unknown Object (File)
Nov 26 2025, 10:26 AM
Unknown Object (File)
Nov 25 2025, 3:02 PM
Unknown Object (File)
Nov 25 2025, 3:02 PM
Unknown Object (File)
Nov 23 2025, 8:27 AM
Subscribers

Details

Summary

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: f62c1f3f8e91
MFC after: 1 week
Sponsored by: Klara, Inc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable