Page MenuHomeFreeBSD

kyua: Try harder to delete directories.
ClosedPublic

Authored by des on Jul 9 2025, 7:54 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Oct 10, 10:23 PM
Unknown Object (File)
Fri, Oct 10, 10:23 PM
Unknown Object (File)
Fri, Oct 10, 10:23 PM
Unknown Object (File)
Fri, Oct 10, 4:22 PM
Unknown Object (File)
Fri, Oct 10, 4:21 PM
Unknown Object (File)
Fri, Oct 10, 10:32 AM
Unknown Object (File)
Fri, Oct 3, 8:04 PM
Unknown Object (File)
Fri, Oct 3, 8:04 PM

Details

Summary

When recursing into a directory to delete it, start by chmod'ing it to
0700. This fixes an issue where kyua is able to run, but not debug, a
test case that creates unwriteable directories, because when debugging
it tries (and fails) to delete the directory after the test completes.

This includes a test case which I haven't been able to test since we
don't build or install kyua's own tests.

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.Jul 9 2025, 7:54 PM
igoro added a subscriber: igoro.

LGTM. And I had a successful testing on my side.

This revision is now accepted and ready to land.Jul 9 2025, 8:26 PM
This revision was automatically updated to reflect the committed changes.