Bug 3165 - man sshd_config does not define order of includes when using globbing
Summary: man sshd_config does not define order of includes when using globbing
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: sshd (show other bugs)
Version: 8.2p1
Hardware: amd64 Linux
: P5 trivial
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks: V_8_4
  Show dependency treegraph
 
Reported: 2020-05-18 03:38 AEST by Toni Dietze
Modified: 2021-03-04 09:54 AEDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Toni Dietze 2020-05-18 03:38:07 AEST
The Include keyword in sshd config files supports globbing. The man page does not define the order of includes when globbing matches several filenames, however, order is important because “[f]or each keyword, the first obtained value will be used.”
Comment 1 Damien Miller 2020-05-29 15:25:52 AEST
Thanks, I've updated the manpages to mention they process in lexical order:

> Include the specified configuration file(s).
> Multiple pathnames may be specified and each pathname may contain
> .Xr glob 7
>-wildcards.
>+wildcards that will be expanded and processed in lexical order.
Comment 2 Damien Miller 2021-03-04 09:54:02 AEDT
close bugs that were resolved in OpenSSH 8.5 release cycle