Page MenuHomeFreeBSD

Make ldconfig(8) atomic
ClosedPublic

Authored by trasz on Aug 9 2018, 11:13 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Mar 26, 1:09 PM
Unknown Object (File)
Mon, Mar 23, 6:35 AM
Unknown Object (File)
Sat, Mar 21, 9:28 AM
Unknown Object (File)
Fri, Mar 20, 7:53 PM
Unknown Object (File)
Wed, Mar 18, 11:29 PM
Unknown Object (File)
Wed, Mar 18, 12:08 AM
Unknown Object (File)
Tue, Mar 17, 1:51 AM
Unknown Object (File)
Sun, Mar 8, 7:18 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 18662
Build 18347: 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.