Use hdb_db_dir().
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22253 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
		| @@ -166,8 +166,11 @@ main(int argc, char **argv) | ||||
|     argc -= optidx; | ||||
|     argv += optidx; | ||||
|  | ||||
|     if (config_file == NULL) | ||||
| 	config_file = HDB_DB_DIR "/kdc.conf"; | ||||
|     if (config_file == NULL) { | ||||
| 	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); | ||||
|     if (ret) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Love Hörnquist Åstrand
					Love Hörnquist Åstrand