From cced93480cea1ee11380f80136c77beef68a74e5 Mon Sep 17 00:00:00 2001 From: Levente Polyak Date: Sat, 23 Oct 2021 16:40:32 +0200 Subject: [PATCH] fix(keyringctl): avoid walking non existing paths to resolve certs --- keyringctl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/keyringctl b/keyringctl index cb3d586..ef8cc21 100755 --- a/keyringctl +++ b/keyringctl @@ -161,6 +161,8 @@ def get_cert_paths(paths: Iterable[Path]) -> Set[Path]: visit: List[Path] = list(paths) while visit: path = visit.pop() + if not path.exists(): + continue # this level contains a certificate, abort depth search if list(path.glob("*.asc")): cert_paths.add(path)