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, Feb 21, 2:21 PM
Unknown Object (File)
Thu, Feb 19, 8:39 AM
Unknown Object (File)
Thu, Feb 19, 1:19 AM
Unknown Object (File)
Wed, Feb 18, 8:28 PM
Unknown Object (File)
Tue, Feb 17, 12:20 AM
Unknown Object (File)
Mon, Feb 16, 6:55 PM
Unknown Object (File)
Thu, Feb 12, 11:45 AM
Unknown Object (File)
Mon, Feb 9, 1:21 PM
Subscribers

Diff Detail

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

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.