Use hdb_db_dir().
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22251 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -57,8 +57,11 @@ stash(struct stash_options *opt, int argc, char **argv)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(opt->key_file_string == NULL) {
|
||||||
|
asprintf(&opt->key_file_string, "%s/m-key", hdb_db_dir(context));
|
||||||
if (opt->key_file_string == NULL)
|
if (opt->key_file_string == NULL)
|
||||||
opt->key_file_string = HDB_DB_DIR "/m-key";
|
errx(1, "out of memory");
|
||||||
|
}
|
||||||
|
|
||||||
ret = hdb_read_master_key(context, opt->key_file_string, &mkey);
|
ret = hdb_read_master_key(context, opt->key_file_string, &mkey);
|
||||||
if(ret && ret != ENOENT) {
|
if(ret && ret != ENOENT) {
|
||||||
|
Reference in New Issue
Block a user