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)
Fri, Jan 24, 5:42 PM
Unknown Object (File)
Mon, Jan 20, 6:27 AM
Unknown Object (File)
Mon, Jan 20, 6:26 AM
Unknown Object (File)
Mon, Jan 20, 5:11 AM
Unknown Object (File)
Sat, Jan 18, 9:47 PM
Unknown Object (File)
Sat, Jan 18, 9:29 PM
Unknown Object (File)
Sun, Jan 12, 9:26 AM
Unknown Object (File)
Fri, Jan 10, 9:59 PM
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