This patch puts default filenames (for, e.g., log_file or acl_file) into HDB_DB_DIR, instead of dropping them wherever the current working directory happens to be. We should probably clean up the "dbname" part of the filename to make sure that we generate sane filenames. diff -ru heimdal-0.7.1/lib/kadm5/context_s.c heimdal-0.7.1-lks/lib/kadm5/context_s.c --- heimdal-0.7.1/lib/kadm5/context_s.c 2005-09-09 08:12:09.000000000 -0400 +++ heimdal-0.7.1-lks/lib/kadm5/context_s.c 2005-11-02 21:42:20.000000000 -0500 @@ -73,13 +73,8 @@ p = krb5_config_get_string(context, binding, name, NULL); if(p) *variable = strdup(p); - else { - p = strrchr(dbname, '.'); - if(p == NULL) - asprintf(variable, "%s.%s", dbname, ext); - else - asprintf(variable, "%.*s.%s", (int)(p - dbname), dbname, ext); - } + else + asprintf(variable, "%s/%s.%s", HDB_DB_DIR, dbname, ext); } static void