add comment

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10472 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
2001-08-10 14:02:57 +00:00
parent 5a1bdb402a
commit 8f3756d7e5

View File

@@ -194,8 +194,11 @@ get_dbinfo(krb5_config_section *cf)
if(di->mkey_file == NULL) {
p = strrchr(di->dbname, '.');
if(p == NULL || strchr(p, '/') != NULL)
/* final pathname component does not contain a . */
asprintf(&di->mkey_file, "%s.mkey", di->dbname);
else
/* the filename is something.else, replace .else with
.mkey */
asprintf(&di->mkey_file, "%.*s.mkey",
(int)(p - di->dbname), di->dbname);
}