Page MenuHomeFreeBSD

mtree: Fix duplicated entries handling in spec()
Needs ReviewPublic

Authored by khng on Mar 27 2024, 6:15 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 21, 12:45 AM
Unknown Object (File)
Thu, Nov 20, 5:41 PM
Unknown Object (File)
Nov 7 2025, 5:32 AM
Unknown Object (File)
Oct 23 2025, 1:16 AM
Unknown Object (File)
Oct 21 2025, 2:42 PM
Unknown Object (File)
Oct 21 2025, 2:36 AM
Unknown Object (File)
Oct 20 2025, 4:43 PM
Unknown Object (File)
Sep 25 2025, 9:05 AM
Subscribers

Details

Reviewers
sjg
imp
Summary

Before this change, in case when duplicated entries were present, the
code reused the freed NODE structure after the centry NODE structure was
freed in addchild(). To fix this, addchild() now returns either the input
argument or the pointer to the existing NODE structure.

Sponsored by: Juniper Networks, Inc.

Diff Detail

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