Fix MSP create policy hangs when no branches qualify

- Stop parent traversal after evaluating the empty relative root.
- Preserve filtering errors, parent fallback, and closest-path selection.
- Cover all four MSP policies with rejection and fallback regressions.
- Document errors when traversal exhausts the branch root.
This commit is contained in:
Antonio SJ Musumeci 2026-10-28 11:28:26 -05:00 • committed by trapexit
parent 8e87bcbff2
commit 28d809f2f8
6 changed files with 169 additions and 8 deletions

View file

@ -83,7 +83,7 @@ _create(const Branches::Ptr &branches_,
branch = ::_create_1(branches_,fusepath,&err);
if(branch)
break;
if(fusepath == "/")
if(fusepath.empty())
break;
fusepath = fusepath.parent_path();
}