From 8f3756d7e5678f8b4329c4a93b169b9e4f777f74 Mon Sep 17 00:00:00 2001 From: Johan Danielsson Date: Fri, 10 Aug 2001 14:02:57 +0000 Subject: [PATCH] add comment git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10472 ec53bebd-3082-4978-b11e-865c3cabbd6b --- kdc/config.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kdc/config.c b/kdc/config.c index 9cf1e9dc2..b523bb40e 100644 --- a/kdc/config.c +++ b/kdc/config.c @@ -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); }