Larry Rosenman <ler@lerctr.org> writes:
> On 09/26/2022 11:39 am, Nazir Bilal Yavuz wrote:
>> When "krb5-config" binary is used from brew or MacPorts installations'
>> path it gives the correct path but there is another "krb5-config"
>> binary at "/usr/bin/krb5-config" path on the macOS VMs, when this
>> binary is used while running "krb5-config --prefix" command run it
>> gives "/" as output. This issue can be related about the CI VMs but I
>> couldn't check it.
> [ yup, it gives "/" ]
Yeah, I see the same on my laptop. So we can't trust krb5-config
unconditionally. But we could do something like checking
"-x $config_prefix . '/bin/kinit'" before believing it's good,
and maybe also check sbin/krb5kdc. We'd want to use similar
probes to decide which of the fallback directories to use, anyway.
regards, tom lane