From d9b5c7e43ccea8b14f4bc666a1488999af7dc13e Mon Sep 17 00:00:00 2001
From: Ken Raeburn <raeburn@mit.edu>
Date: Tue, 15 Aug 2006 23:43:27 +0000
Subject: [PATCH] * kdb_default.c (krb5_def_store_mkey): If the file can't be
 opened, construct an error message that includes the file's name.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18448 dc483132-0cff-0310-8789-dd5450dbe970
---
 src/lib/kdb/kdb_default.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/lib/kdb/kdb_default.c b/src/lib/kdb/kdb_default.c
index 715333056..9c74fb005 100644
--- a/src/lib/kdb/kdb_default.c
+++ b/src/lib/kdb/kdb_default.c
@@ -170,6 +170,9 @@ krb5_def_store_mkey(context, keyfile, mname, key, master_pwd)
 #if HAVE_UMASK
 	(void) umask(oumask);
 #endif
+	krb5_set_error_message (context, e,
+				"%s accessing file '%s'",
+				error_message (e), keyfile);
 	return e;
     }
     enctype = key->enctype;
-- 
2.26.2