Skip to content

Commit

Permalink
Check /usr/lib64 for plugins before /usr/lib
Browse files Browse the repository at this point in the history
This enables running k5test on RHEL 7.2.
  • Loading branch information
frozencemetery committed Mar 22, 2016
1 parent ea3c82e commit 2bf26a0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions k5test/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,11 @@ def find_plugin_dir():

# if there was no LD_LIBRARY_PATH, or the above failed
if _PLUGIN_DIR is None:
# if we don't have a LD_LIBRARY_PATH, just search in
# $prefix/lib
lib_dir = os.path.join(get_output('krb5-config --prefix'), 'lib64')
_PLUGIN_DIR = _decide_plugin_dir(_find_plugin_dirs_installed(lib_dir))

# /usr/lib64 has only been observed on RHEL
if _PLUGIN_DIR is None:
lib_dir = os.path.join(get_output('krb5-config --prefix'), 'lib')
_PLUGIN_DIR = _decide_plugin_dir(_find_plugin_dirs_installed(lib_dir))

Expand Down

0 comments on commit 2bf26a0

Please sign in to comment.