diff options
author | Tom Yu <tlyu@mit.edu> | 2014-02-25 17:35:35 -0500 |
---|---|---|
committer | Tom Yu <tlyu@mit.edu> | 2014-02-26 12:44:43 -0500 |
commit | 8df1965d1ccdbcb8d74a3e68ad35d7579db9ac44 (patch) | |
tree | 59b3c47000f2f998c52aea8c53c305d282ef4acb /src/configure.in | |
parent | 1121a7fa68f44167471dc94cf5795a838587e84c (diff) | |
download | krb5-8df1965d1ccdbcb8d74a3e68ad35d7579db9ac44.tar.gz krb5-8df1965d1ccdbcb8d74a3e68ad35d7579db9ac44.tar.xz krb5-8df1965d1ccdbcb8d74a3e68ad35d7579db9ac44.zip |
Avoid duplicate "/etc/krb5.conf" in profile path
If configure gets run with --sysconfdir=/etc, "/etc/krb5.conf" shows
up twice in the profile path, which causes its contents to be read
twice. This can cause some confusing and possibly problematic
behavior.
Add some logic to configure.in to avoid adding the duplicate entry for
"/etc/krb5.conf".
Reported independently by Denis Vlasenko and Fredrik Tolf.
ticket: 3277
tags: pullup
target_version: 1.12.2
Diffstat (limited to 'src/configure.in')
-rw-r--r-- | src/configure.in | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/configure.in b/src/configure.in index c2eaf78d83..7dded28f22 100644 --- a/src/configure.in +++ b/src/configure.in @@ -6,6 +6,15 @@ if test x"$runstatedir" == x; then fi AC_SUBST(runstatedir) +# Don't make duplicate profile path entries for /etc/krb5.conf if +# $sysconfdir is /etc +if test "$sysconfdir" == /etc; then + SYSCONFCONF="" +else + SYSCONFCONF=":${sysconfdir}/krb5.conf" +fi +AC_SUBST(SYSCONFCONF) + CONFIG_RULES KRB5_VERSION=K5_VERSION AC_SUBST(KRB5_VERSION) |