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
F102965033: D46872.diff
Tue, Nov 19, 7:02 AM
F102935406: D46872.diff
Mon, Nov 18, 11:13 PM
Unknown Object (File)
Mon, Nov 11, 5:49 AM
Unknown Object (File)
Mon, Nov 11, 5:42 AM
Unknown Object (File)
Mon, Nov 11, 5:42 AM
Unknown Object (File)
Fri, Nov 8, 5:28 PM
Unknown Object (File)
Thu, Nov 7, 2:30 AM
Unknown Object (File)
Sun, Nov 3, 6:25 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 59683
Build 56569: arc lint + arc unit