[Bug 3726] `Include` in a file included in a Host-block
bugzilla-daemon at mindrot.org
bugzilla-daemon at mindrot.org
Sun Sep 1 12:02:53 AEST 2024
https://bugzilla.mindrot.org/show_bug.cgi?id=3726
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |djm at mindrot.org
--- Comment #1 from Damien Miller <djm at mindrot.org> ---
This behaviour is completely intentional and is documented in the
manual page:
> An Include directive may appear inside a Match block to
> perform conditional inclusion.
Having Match blocks within a conditionally-included file override the
Match that originally included them would be very surprising and
difficult to reason about.
As it operates now, both Match blocks (the one in the top-level file
and the one in the included file) need to evaluate to true for the
their configuration to apply. IMO this is the safest, easiest to reason
about and most expressive option.
--
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
More information about the openssh-bugs
mailing list