Page MenuHomeFreeBSD

Make ldconfig(8) atomic
ClosedPublic

Authored by trasz on Aug 9 2018, 11:13 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 24, 12:11 AM
Unknown Object (File)
Dec 1 2025, 10:43 PM
Unknown Object (File)
Dec 1 2025, 3:25 AM
Unknown Object (File)
Nov 28 2025, 6:13 PM
Unknown Object (File)
Nov 28 2025, 6:41 AM
Unknown Object (File)
Nov 26 2025, 6:50 PM
Unknown Object (File)
Nov 26 2025, 6:24 AM
Unknown Object (File)
Nov 24 2025, 3:15 PM
Subscribers

Details

Summary

Make ldconfig(8) atomic, by removing an unneccessary call to unlink(2)
before rename(2).

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 18663
Build 18348: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Aug 9 2018, 11:24 AM
sbin/ldconfig/ldconfig.c
522

This comment really marks both unlink() and rename() calls and could be preserved. It is arguably not too useful.

This revision was automatically updated to reflect the committed changes.