aklog: Only try to use krb5-weak.conf if it exists
authorAndrew Deason <adeason@sinenomine.net>
Tue, 26 Mar 2013 18:27:33 +0000 (13:27 -0500)
committerDerrick Brashear <shadow@your-file-system.com>
Wed, 27 Mar 2013 12:54:52 +0000 (05:54 -0700)
commit95240a5a5030a1053ce9966b54037eda2d37140b
tree2d9093e7bb0b9e985029f984cdbd44e86614377e
parent6ad2cc0275cd1074316d6bc70cd8758d25f94467
aklog: Only try to use krb5-weak.conf if it exists

The logic we use for using krb5-weak.conf to allow 'weak crypto'
requires us to know where the default krb5.conf is. The default
krb5.conf local can vary significantly depending on the platform, and
we don't have a good way of figuring out what it is, so we guess. We
may guess wrong.

To limit the cases where we guess wrong, only try to do this
workaround if the krb5-weak.conf file actually exists.

Change-Id: Id3905268b5cc22dafb4dd539b9f3d323a656fee2
Reviewed-on: http://gerrit.openafs.org/9667
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
src/aklog/aklog.c