From 7c5b8a2f289b9edad6b4a72e3f1beec07cd8b795 Mon Sep 17 00:00:00 2001 From: Stanislav Levin Date: Wed, 22 Nov 2017 09:19:28 +0300 Subject: [PATCH] Fix search of krb5 plugin directory --- k5test/k5test/_utils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/k5test/k5test/_utils.py b/k5test/k5test/_utils.py index 7a94e12..e289fac 100644 --- a/k5test/k5test/_utils.py +++ b/k5test/k5test/_utils.py @@ -97,8 +97,9 @@ def _decide_plugin_dir(dirs): def _find_plugin_dirs_installed(search_path): try: - options_raw = get_output('find %s/ -type d ' - '-path "*/krb5/plugins"' % search_path, + options_raw = get_output('find %s/ -type d \( ! -executable -o ! -readable \) ' + '-prune -o ' + '-type d -path "*/krb5/plugins" -print' % search_path, stderr=subprocess.STDOUT) except subprocess.CalledProcessError: options_raw = None -- 2.10.4