Page MenuHomeFreeBSD

kyua: Stop using readdir_r()
ClosedPublic

Authored by des on Aug 1 2025, 4:17 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Oct 13, 4:49 AM
Unknown Object (File)
Sat, Oct 11, 7:40 AM
Unknown Object (File)
Sat, Oct 11, 12:18 AM
Unknown Object (File)
Sat, Oct 11, 12:18 AM
Unknown Object (File)
Sat, Oct 11, 12:18 AM
Unknown Object (File)
Sat, Oct 11, 12:18 AM
Unknown Object (File)
Fri, Oct 10, 5:48 PM
Unknown Object (File)
Sun, Oct 5, 1:43 PM
Subscribers

Details

Summary

It cannot be used safely, and Kyua doesn't even pretend to try.

MFC after: 1 week
Sponsored by: Klara, Inc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

des requested review of this revision.Aug 1 2025, 4:17 PM
igoro added a subscriber: igoro.

LGTM

contrib/kyua/utils/fs/directory.cpp
197

It seems it needs renaming to readdir not to let message readers think that readder_r was on the case.

This revision is now accepted and ready to land.Aug 1 2025, 10:56 PM
des marked an inline comment as done.Aug 1 2025, 11:08 PM
This revision now requires review to proceed.Aug 1 2025, 11:10 PM
This revision was not accepted when it landed; it landed in state Needs Review.Aug 1 2025, 11:14 PM
This revision was automatically updated to reflect the committed changes.