[CentOS] Updated krb5 rpm package altered existing krb5.conf - No go

Thu Jun 14 23:04:30 UTC 2018
Gordon Messmer <gordon.messmer at gmail.com>

On 06/14/2018 09:30 AM, me at tdiehl.org wrote:
> On Thu, 14 Jun 2018, Richard Grainger wrote:
>> I looked at the spec file in the source RPM for the krb5-libs package
>> and it it has the correct %config(noreplace) directive next to that
>> file in the %files section, so this is mysterious.
> I too can confirm this behavior. 

# rpm -qa krb\* --triggers
triggerun scriptlet (using /bin/sh) -- krb5-libs < 1.15.1-13
if ! grep -q 'includedir /etc/krb5.conf.d' /etc/krb5.conf ; then
     sed -i '1i # Other applications require this directory to perform 
krb5 configuration.\nincludedir /etc/krb5.conf.d/\n' /etc/krb5.conf

Looks like that's the culprit.