Page MenuHomeFreeBSD

Make ldconfig(8) atomic
ClosedPublic

Authored by trasz on Aug 9 2018, 11:13 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 22 2024, 11:39 PM
Unknown Object (File)
Mar 22 2024, 11:39 PM
Unknown Object (File)
Mar 22 2024, 11:39 PM
Unknown Object (File)
Mar 19 2024, 1:16 AM
Unknown Object (File)
Mar 18 2024, 7:49 PM
Unknown Object (File)
Mar 8 2024, 3:55 AM
Unknown Object (File)
Mar 7 2024, 11:41 PM
Unknown Object (File)
Jan 7 2024, 1:23 AM
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.