Add test for tarfile exclusion

This commit is contained in:
Kovid Goyal
2023-02-24 11:46:50 +05:30
parent a5cf66b334
commit 77c04107f3
4 changed files with 107 additions and 11 deletions

View File

@@ -365,6 +365,7 @@ func load_config(hostname_to_match string, username_to_match string, overrides [
if len(paths) == 0 {
paths = []string{filepath.Join(utils.ConfigDir(), "ssh.conf")}
}
paths = utils.Filter(paths, func(x string) bool { return x != "" })
err := p.ParseFiles(paths...)
if err != nil && !errors.Is(err, fs.ErrNotExist) {
return nil, err