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)
Thu, Feb 26, 12:17 PM
Unknown Object (File)
Tue, Feb 17, 7:25 PM
Unknown Object (File)
Sun, Feb 1, 4:01 PM
Unknown Object (File)
Sat, Jan 31, 11:37 AM
Unknown Object (File)
Jan 29 2026, 11:34 AM
Unknown Object (File)
Jan 26 2026, 1:44 PM
Unknown Object (File)
Jan 25 2026, 9:26 PM
Unknown Object (File)
Jan 24 2026, 2:15 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