add comment
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10472 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user