Page MenuHomeFreeBSD

diff: Detect loops when diffing directories.
ClosedPublic

Authored by des on Jun 19 2025, 12:48 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 15, 8:45 AM
Unknown Object (File)
Oct 26 2025, 8:08 PM
Unknown Object (File)
Oct 26 2025, 8:08 PM
Unknown Object (File)
Oct 26 2025, 8:08 PM
Unknown Object (File)
Oct 26 2025, 8:08 PM
Unknown Object (File)
Oct 26 2025, 2:24 PM
Unknown Object (File)
Oct 26 2025, 8:59 AM
Unknown Object (File)
Oct 25 2025, 3:14 PM
Subscribers

Details

Summary

Sponsored by: Klara, Inc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 64987
Build 61870: arc lint + arc unit

Event Timeline

des requested review of this revision.Jun 19 2025, 12:48 PM
markj added a subscriber: markj.
markj added inline comments.
usr.bin/diff/diffdir.c
52
171
This revision is now accepted and ready to land.Jun 19 2025, 1:33 PM
des marked an inline comment as done.Jun 19 2025, 3:17 PM
des added inline comments.
usr.bin/diff/diffdir.c
52

If these were function variables I'd agree, but is that really needed for static heads? The initializer evaluates to { NULL }.

usr.bin/diff/diffdir.c
52

Today, it's not needed; tomorrow, who knows? The RB_* macros have been extensively reworked at least once in my memory, so I'd be conservative and include the initializers.

This revision now requires review to proceed.Jun 19 2025, 4:11 PM
des marked 2 inline comments as done.Jun 19 2025, 4:15 PM
This revision is now accepted and ready to land.Jun 19 2025, 4:16 PM
This revision was automatically updated to reflect the committed changes.