Bug 3165

Summary: man sshd_config does not define order of includes when using globbing
Product: Portable OpenSSH Reporter: Toni Dietze <Flupp+bugzilla.mindrot.org>
Component: sshdAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED FIXED    
Severity: trivial CC: djm
Priority: P5    
Version: 8.2p1   
Hardware: amd64   
OS: Linux   
Bug Depends on:    
Bug Blocks: 3162    

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