pub fn trusted_executable( trusted: &[PathBuf], observed: &str, windows: bool, ) -> bool
Windows reports C:\... while canonical paths are \\?\C:\..., and file names are case-insensitive.
C:\...
\\?\C:\...