Use hdb_db_dir().

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22250 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2007-12-09 05:57:31 +00:00
parent 16df7de8a2
commit ada0c9cb9d

View File

@@ -116,9 +116,12 @@ main(int argc, char **argv)
argc -= optidx; argc -= optidx;
argv += optidx; argv += optidx;
if (config_file == NULL) if (config_file == NULL) {
config_file = HDB_DB_DIR "/kdc.conf"; asprintf(&config_file, "%s/kdc.conf", hdb_db_dir(context));
if (config_file == NULL)
errx(1, "out of memory");
}
ret = krb5_prepend_config_files_default(config_file, &files); ret = krb5_prepend_config_files_default(config_file, &files);
if (ret) if (ret)
krb5_err(context, 1, ret, "getting configuration files"); krb5_err(context, 1, ret, "getting configuration files");