Read /etc/gss/mech if no mech.d/*.conf found Always read /etc/gss/mech, even if globbing /etc/gss/mech.d/*.conf doesn't work. Doing this using GLOB_DOOFFS proved error-prone, so use a simpler approach: factor out the per-pathname handling into a helper function load_if_changed, call it with MECH_CONF before the glob, then pass each glob result through the helper. https://github.com/krb5/krb5/commit/ac98187641f6943ae571606c0b6a97f236f9b60c Author: Greg Hudson Commit: ac98187641f6943ae571606c0b6a97f236f9b60c Branch: master src/lib/gssapi/mechglue/g_initialize.c | 43 ++++++++++++++++++------------- 1 files changed, 25 insertions(+), 18 deletions(-)