Page MenuHomeFreeBSD

Make ldconfig(8) atomic
ClosedPublic

Authored by trasz on Aug 9 2018, 11:13 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 10, 12:17 PM
Unknown Object (File)
Oct 3 2024, 8:17 AM
Unknown Object (File)
Oct 1 2024, 2:06 PM
Unknown Object (File)
Oct 1 2024, 12:55 PM
Unknown Object (File)
Sep 27 2024, 2:37 AM
Unknown Object (File)
Sep 26 2024, 5:55 PM
Unknown Object (File)
Sep 25 2024, 10:45 PM
Unknown Object (File)
Sep 24 2024, 1:01 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 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.