Page MenuHomeFreeBSD

Make ldconfig(8) atomic
ClosedPublic

Authored by trasz on Aug 9 2018, 11:13 AM.
Tags
None
Referenced Files
F132021785: D16641.id46455.diff
Mon, Oct 13, 12:47 AM
Unknown Object (File)
Sun, Oct 5, 10:45 PM
Unknown Object (File)
Thu, Oct 2, 6:13 AM
Unknown Object (File)
Mon, Sep 29, 1:28 AM
Unknown Object (File)
Sep 13 2025, 12:22 AM
Unknown Object (File)
Aug 29 2025, 9:47 PM
Unknown Object (File)
Aug 24 2025, 10:37 AM
Unknown Object (File)
Aug 19 2025, 9:39 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 Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Aug 9 2018, 11:24 AM
sbin/ldconfig/ldconfig.c
522 ↗(On Diff #46456)

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.